Iqbal Khan
Iqbal Khan

Reputation: 4617

Stopping Tab View from Restore to full screen

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

Upvotes: 1

Views: 108

Answers (1)

Rok Jarc
Rok Jarc

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

Related Questions