Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ranguvar

macrumors 6502
Original poster
Sep 18, 2009
318
2
Hi,

I'm creating a small app that has UITabBarController which contains UINavigationControllers. I'm not using Interface Builder at all, everything is created with code.
However, I can't seem to be able to get the UINavigationController to autoresize correctly: When I rotate the device, the navigation bar rotates, but does not change its height. But when I choose another tab when the device is already in landscape mode, the navigation bar of the newly selected view controller is sized correctly.

I attached the very simple XCode project so you can see for yourself.

I'd be grateful for any help on this!

- ranguvar



EDIT: By the way, it works when using Interface Builder. I checked all the autoresizing masks, but when I create the interface with code, the navigation bar still doesn't resize...
 

Attachments

  • MyProject.zip
    17.6 KB · Views: 77
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.