我創建了一個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