2012-01-11 57 views
0

我把下面的代码在“applicationdidFinishLaunchingWithOptions”iPhone - 注册推送通知锁iPhone上运行IOS3在释放模式

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{  
    // Let the device know we want to receive push notifications 
    [[UIApplication sharedApplication] registerForRemoteNotificationTypes: 
    (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; 

...//other code 
} 

的应用程序工作正常的iOS 4,iOS 5的(调试和发布模式)。
在调试模式下,该应用在iOS 3中正常工作。
该应用程序不适用于iOS 3的RELEASE模式,手机在应用程序启动时被锁定。
请看截图。
enter image description here 你知道如何解决它吗?

+0

你是什么意思被锁定?你的意思是卡住了吗?它发生在真实的设备上还是只发生在模拟器上? – 2012-01-11 18:16:39

+0

它发生在真实设备上 – 2012-01-11 19:12:00

+0

因此借用了另外两款运行iOS 3.0的iPhone,该应用程序正常工作。 可能只发生在我的设备上。 – 2012-01-11 19:15:58

回答

0

因此借用了另外两款运行iOS 3.0的iPhone,该应用程序运行良好。可能只发生在我的设备上。