There doesn’t seem to be a way anywhere within the sdk to rotate a UINavigationController and it’s children to a new orientation when the view is displayed. There are a ton of people asking about this all over the web and everyone gives them the same useless answer that doesn’t solve the problem. This creates a ton of posts I have to sort through and no results.
Yes, I know how to tell it to rotate or not rotate a certain view, no this isn’t the functionality I’m looking for.
I have multiple pages of data. Some I require must remain in portrait mode while others are able to be rotated. Going to one of these rotatable views and then returning to a portrait view will cause the portrait view to be in landscape mode. Rotating the device to fix this view doesn’t work as this one doesn’t allow rotating. *sigh*
One Response for "The iPhone SDK Strikes Again…"
“Since the UINavigationController class inherits from the UIViewController class, its instances also have a view property. A navigation controller’s view contains a navigation bar and its top view controller’s view in its hierarchy. Therefore, you just need to attach the navigation controller’s view to a window to display it.”
I have not tried this but:
Can you not gain access to the view and rotate it? Or perhaps place all controls you want to rotate in sub-views that you can rotate?
Leave a reply