我创建了一个UINavigationBarButton在那里我已经放置在名为按钮显示“更新”。当更新按钮被点击它被导航到SecondViewController.But的问题是在SecondViewController的TabBar不显示。什么我想要做的是,当我点击在SecondViewController后退按钮应该回到RootViewController.Here是代码的TabBar后退按钮是不是在iOS应用
- (void)viewDidLoad {
[super viewDidLoad];
[email protected]"GooGle";
[self.navigationItem setLeftItemsSupplementBackButton:YES];
[self.navigationController setToolbarHidden:NO];
UIBarButtonItem *nextView = [[UIBarButtonItem alloc] initWithTitle:@"update" style:UIBarButtonSystemItemPlay target:self action:@selector(updateAddress)];
self.navigationItem.rightBarButtonItem = nextView;
[nextView release];
}
-(void)updateAddress
{
SecondViewController *updateView=[[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil];
[self.navigationController presentViewController:updateView animated:YES completion:Nil];
[self.navigationItem setLeftItemsSupplementBackButton:YES];
}
一次检查在一些SecondViewController类别的地方你都躲在一个我想是这样,但不知道。 – Balu 2013-03-21 09:16:26
通过提供更多信息并使其更清晰来编辑您的问题。我无法理解什么是问题。 – Petar 2013-03-21 09:19:29
@Sunny不是躲在SecondViewController.Just给出任何where.And没有推到RootViewController的SecondViewController – lreddy 2013-03-21 09:20:30