Iphone 通用应用程序-iPad不工作

Iphone 通用应用程序-iPad不工作,iphone,ipad,ios4,Iphone,Ipad,Ios4,我已经建立了一个通用的应用程序,它可以在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

我已经建立了一个通用的应用程序,它可以在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'

有人能帮我吗???谢谢..

不要在iOS 3.2版上运行iPad模拟器

SorterDarRayusingComparator:在iOS4中引入

如果您必须使用sortedArrayUsingComparator:并且无法使用其他方法执行相同的操作,则需要将部署目标设置为iOS 4.0