【问题标题】:Universal App - iPad not working通用应用程序 - iPad 不工作
【发布时间】:2011-01-31 09:24:40
【问题描述】:

我已经构建了一个在 iPhone 模拟器中完美运行的通用应用程序。但应用程序在 iPad 模拟器中崩溃。执行不会进入 iPad 本身的 AppDelegate。当应用程序在 iPad 中编译时,它会抛出错误:

2011-01-31 14:52:51.330 MassStorage[1751:207] *** -[NSCFArray sortedArrayUsingComparator:]: unrecognized selector sent to instance 0x680fbe0
2011-01-31 14:52:51.335 MassStorage[1751:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArraysortedArrayUsingComparator:]: unrecognized selector sent to instance 0x680fbe0'
2011-01-31 14:52:51.336 MassStorage[1751:207] Stack: (
45590608,
46748460,
45599323,
45061750,
45058546,
26736,
21965,
3682181,
3675039,
3735534,
3731264,
3739449,
3714977,
5049482,
41527574,
41526821,
41470418,
41469746,
3069270,
3095870,
3077367,
3109336,
54583676,
44869788,
44865704,
3068449,
3101554,
55758,
10521
)
terminate called after throwing an instance of 'NSException'

谁能帮帮我???谢谢。。

【问题讨论】:

    标签: iphone ipad ios4


    【解决方案1】:

    不要使用 iOS 3.2 版运行 iPad 模拟器

    sortedArrayUsingComparator:在 iOS4 中引入。

    如果你必须使用 sortedArrayUsingComparator: 并且没有办法用其他方法做同样的事情,你需要将你的部署目标设置为 iOS 4.0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-13
      相关资源
      最近更新 更多