【问题标题】:Xcode debug warning about two-stage rotation animationXcode关于两阶段旋转动画的调试警告
【发布时间】: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


【解决方案1】:

可能不是真正的警告或旧版本的副产品,因为当我在另一台运行最新 xcode 4.3.3 和 iPad iOS 5.1 的 iPad 上使用不同的 Mac 时,我没有收到警告(警告是在 xcode 4.2 和 iOS 4.3 )

另请注意,这些警告仅在设备本身而不是在模拟器中运行时出现。

希望对其他人有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 2012-12-27
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多