AdMob and UINavigationControllers

Posted by Ward on Stack Overflow See other posts from Stack Overflow or by Ward
Published on 2010-03-23T04:01:43Z Indexed on 2010/03/23 4:11 UTC
Read the original article Hit count: 651

I'm playing around with AdMob and I"m trying to get something going with an auto-rotating view inside a uinavigationcontroller.

I have the ad at the top of the screen. Not sure if this is the right approach, but in my LoadView method I have: self.navigationController.view.frame = CGRectMake(0,48,320,432);

The navbar appears below the ad. When I rotate the phone to landscape is there a way to get the navbar (which is now across the top) to be 432px wide so it doesn't get cut off under the ad?

I tried writing a method that is called when the device orientation changes, but it seems like manipulating the view on the navigationcontroller screws things up for every orientation except portrait. The view keeps getting shorter until it disappears.

Thanks, Howie

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uinavigationcontroller