代码之家  ›  专栏  ›  技术社区  ›  typeoneerror

uiImagePickerController在4.0中似乎已“断开”。还有其他人吗?

  •  1
  • typeoneerror  · 技术社区  · 16 年前

    一直在开发3.1.3应用程序,最近升级到了4.0 SDK。我还在构建一个3.1.3的基本SDK,并在一个3.1.3设备以及一个运行4的设备上进行测试。在4.0设备上,当显示uiImagePickerController时,我会收到以下消息:

    Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
    
    Using two-stage rotation animation is not supported when rotating more than one view controller or view controllers not the window delegate
    

    当应用程序在3.1.3设备上运行时,它工作正常。没有日志,图像会在我选择时显示。当它在4.0设备上运行(相同的代码)时,会出现日志和委托方法

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
    

    不将图像作为的字典键之一返回 info . 所以它似乎被破坏了,或者我使用了一个不推荐使用的方法或者其他东西。还有人有这个问题吗?

    2 回复  |  直到 16 年前
        1
  •  1
  •   typeoneerror    16 年前

    这是iOS 4.0的已知问题。你得等一下,希望它能用4.1修正。

        2
  •  0
  •   Community Mohan Dere    9 年前

    在这个问题上,你看起来并不孤单:

    Getting "Using two-stage rotation animation" warning with UIImagePickerController

    不幸的是,还没有人发布一个被接受的答案。祝你好运!

    推荐文章