Matthew Mitchell
Matthew Mitchell

Reputation: 5393

Resizing content in uinavigation controller

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

Answers (1)

TomSwift
TomSwift

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

Related Questions