且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IOS 7推送通知设置

更新时间:2023-02-26 21:10:08

一旦注册成功推送通知(询问用户是否允许他......)

Once you’ve registered Push Notifications (asked the user if he allows…)

[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

您可以检查启用什么类型的推送通知:

you can check what types of push notifications are enabled:

UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

我希望这是你想要的...

I hope this is what you want…