UITabBarController を使っていて、ある時だけタブバーを非表示にしたくなったので、その方法メモ
タブバーを非表示にしたい View に遷移する時に hidesBottomBarWhenPushed を YES にしてあげる。
1 2 3 4 5 6 |
HogeViewController *hoge = [[HogeViewController alloc] init]; // Tab bar を非表示 hoge.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:hoge animated:YES]; |
[…] ■UITabBarController でタブを非表示にする|hnyssh -タブバーなお話。 […]