Reputation: 4617
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];
Upvotes: 1
Views: 108
Reputation: 18875
You should be better off if you move your tabViewController-shrinking-code into viewDidLoad
or viewWillAppear
(tabViewControllers methods). Dont't forget to call [super ...]
when overriding this methods.
Also make sure to set tabViewController.wantsFullScreenLayout
to NO
.
Upvotes: 1