委托方法不调用

时间:2012-10-20 11:48:56

标签: objective-c delegates push

iPhone上的Apple推送通知提醒,声音和徽章。但是没有打电话:

-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification

此方法未调用。我该怎么办?

1 个答案:

答案 0 :(得分:1)

您可能希望将委托回调用于远程通知而非本地通知

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo