可能重复:
Getting “Using two-stage rotation animation” warning with UIImagePickerController
在我的iphone应用程序中,登录后我有一个登录屏幕,我正在导航到一个班级(我有一个带有5个标签的标签栏控制器)
像这样我是以编程方式创建标签栏 tabBarController = [[UITabBarController alloc] init];
NSMutableArray *arrControllers = [[NSMutableArray alloc] initWithCapacity:5];
//Add PunchClock to tab View Controller
PunchClock* objPunchClock = [[PunchClock alloc] initWithTabBar];
NavigationController = [[UINavigationController alloc] initWithRootViewController:objPunchClock];
NavigationController.navigationBar.tintColor = [UIColor brownColor];
[arrControllers addObject:NavigationController];
[NavigationController release];
[objPunchClock release];
tabBarController .viewControllers = arrControllers;
[arrControllers release];
[self.view addSubview:[tabBarController view]];
在导航到此类时登录后,我收到此调试器警告
2012-07-07 12:09:27.988 WorkForce[1475:207] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
2012-07-07 12:09:28.074 WorkForce[1475:207] Using two-stage rotation animation is not supported when rotating more than one view controller or view controllers not the window delegate
是什么意思,,,如何删除此警告?请帮帮我
答案 0 :(得分:0)
我不知道该错误消息的含义,但是当您收到这样的特定错误消息时,使用the entire error message in quotes进行搜索以查看是否有其他人遇到过此消息通常会有所帮助。
显然他们有。请报告并告诉我们它的含义。
答案 1 :(得分:0)
像willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
和willAnimateSecondHalfOfRotationToInterfaceOrientation:duration:
这样的两半动画方法是一种较旧的方法。如果您已实现这些方法,则应将其删除,以便可以使用一步式方案(在本例中为willAnimateRotationToInterfaceOrientation:duration:
)。