【发布时间】:2012-07-27 17:27:41
【问题描述】:
我的 iPad 应用使用 (gcc) 在下面的 xcode 调试器中输出以下警告。 这很令人沮丧,因为我不知道如何调试它。
Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
我确实使用以下方法进行旋转更改
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation duration:(NSTimeInterval)duration{
//with conditional statement like
if (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown){
//change images for portrait, redisplay any visible popovers
}else{
//change images for landscape, redisplay any visible popovers
}
我没有使用任何旧的两阶段方法。
该应用确实使用了一个根 tabbarController,其中包含两个 viewController 和一个 navigationController 选项卡。 任何帮助都会很棒。
【问题讨论】:
-
我开始怀疑这不是真正的警告或旧版本的副产品,因为当我在另一台运行最新 xcode 4.3.3 和 iPad 的 iPad 上使用不同的 Mac 时,我没有得到它iOS 5.1(警告是在 xcode 4.2 和 iOS 4.3 上)......可能会自己回答这个问题,让其他可能也遇到这个奇怪的人。
标签: ios xcode rotation warnings