UIViewControllerナビゲーションスタックに3つあるナビゲーションベースのアプリケーションを作成しようとしています。ボトムバー(UITabBar)があります。
最初UIViewControllerにスタックにプッシュされたときにタブバーを非表示にし、2番目にプッシュされたときにタブバーを表示したいUIVIewController。
これが私がそうするために書いたコードです。
最初にUIVIewController:
NotificationDetailsVC *obj = [[NotificationDetailsVC alloc] init];
obj.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:obj animated:YES];
[obj release];
2番目UIViewControllerに私はしました:
NotificationBO *obj=[self.notificationsArray objectAtIndex:indexPath.row];
object.hidesBottomBarWhenPushed = NO;
[self.navigationController pushViewController:object animated:YES];
[object release];
ここで問題となるのは、最初のUIViewControllerに対してUITabBarを非表示にすることができますが、2番目のUIViewControllerも非表示にすることです。
この問題を解決するにはどうすればよいですか?