I want to change the height of UIViewController's inside the UINavigationController to display the banner below so that it doesn't hide anything.
I thought it would be pretty simple just changing the view frame in viewDidLoad , but that didn't work:
CGRect frame = self.view.frame; self.view.frame = CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height - 49.0f);
I also tried adding
[navigationController.view setAutoresizesSubviews:NO]
after starting UINavigationController , but it still looks the same.
The only option I can think of now is to use the UINavigationController inside the dummy UITabBarController , which will be hidden by the banner, but this seems to me unnecessarily complicated.
Is there a way to change the height of the view controller view inside the UINavigationController ?
source share