2012-07-07 35 views
0

可能重复:
Getting “Using two-stage rotation animation” warning with UIImagePickerController如何从这个调试警告删除

在我的iPhone应用程序我有一个登录界面登录电子后,我要前往一个类(我有标签带有5个选项卡的条形码控制器)

像这样我以编程方式创建TabBar

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

我不知道该错误消息是什么意思,但是当您收到此类特定的错误消息时,通过the entire error message in quotes进行搜索以查看是否有其他人遇到过这种情况通常很有帮助。

显然他们有。请回报并告诉我们它的含义。

+0

如果我忽略这些调试器警告,它会成为我的应用程序的问题? – Ravi 2012-07-07 07:25:34

+0

更好的解决它 – 2012-07-07 07:36:14

0

willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:willAnimateSecondHalfOfRotationToInterfaceOrientation:duration:这样的两半动画方法是较老的方法。如果您已经实施了这些方法,则应删除这些方法,以便可以使用一步方案(本例中为willAnimateRotationToInterfaceOrientation:duration:)。

+0

不,我没有使用任何动画代码 – Ravi 2012-07-07 07:24:01