有时候在使用了UITabBarController后,比如如下:
当响应右上角的按钮事件时,进入另一个界面下图所示,而在此界面我们不需要再显示下面的UITabBarController对象,那我们需要这样设置:
MyViewController *aViewController= [[MyViewController alloc] init];
[aViewControllersetHidesBottomBarWhenPushed: YES];
[self.navigationControllerpushViewController: aViewController animated: YES];
[aViewController release];
注意第二行,不能放在别的地方,否则不起作用。