Alex Rivera | Logout

How to eliminate "two-stage rotation" warning?

Asked 2011-07-09T18:31:35.780
11

My window's rootViewController is a UINavigationController Then.. In this navigation controller's rootViewController, I popup a modal view(a UITabBarController)

something like this:

UIWindow
->UINavigationController
-->MyFirstViewController<--In this class I run following code
[self.navigationController presentModalViewController:tabController animated:YES];

Then the debugger warning :Using two-stage rotation animation is not supported when rotating more than one view controller or view controllers not the window delegate

However, if the modal view is not tabController this warning does not appear.

What will this behavior do harm to the application when I popup tabController modal view in a navigation controller?

Or I should find another way to do this?

I found several similar questions on this site, but I don't get it...

Edit
Report

1 Answer

2

I have an app where a UITabBarController is the root view controller. Depending on an in-app purchase, the child view controllers are different.

In my NIB, I had the UITabBarController without any child view controllers. I added the child view controllers in application:didFinishLaunchingWithOptions:

This caused the warning "two-stage" rotation to appear. As soon as I added one single child view controller to the tabbar controller in the NIB it disappeared.

answered 2012-09-23T18:18:15.010

Your Answer