Reputation: 5393
In some cases I need to add a search bar or tab bar to my application. I use UIViewController for the UINavigationController content. Changing the frame on the UIViewControllers wont do anything.
Can anyone help?
Thank you.
Here's code which fails in the initWithStyle method of a UIViewController (Also fails in other methods):
CGRect frame = self.view.frame;
self.view.frame = CGRectMake(0, 0, frame.size.width, frame.size.height - 49);
That might not be perfect code but it should at least move the view.
Upvotes: 0
Views: 1032
Reputation: 39502
Here is a technique I use to make room beneath a UINavigationController for an AdBannerView that is global to the app. Perhaps you can do something similar.
global ADBannerView in iPhone app
Upvotes: 1