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...
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...