1

I had changed the view size of TabViewController on application didFinishLaunchingWithOptions. And it is working as expected. But my problem is when I show a view using modelViewController then tabViewController view restore to full screen. How can I make tab view not to restore back to full screen.

 [self presentModalViewController:navController animated:YES];

enter image description here

4

1 回答 1

1

如果您将 tabViewController-shrinking-code 移入viewDidLoador viewWillAppear(tabViewControllers 方法),您应该会更好。[super ...]覆盖此方法时不要忘记调用。

还要确保设置tabViewController.wantsFullScreenLayoutNO.

于 2012-05-26T09:05:21.737 回答