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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.