小编Chr*_*ine的帖子

如何使用enabledRemoteNotificationTypes更新代码,因为它"在iOS 8中不受支持"?

这是我用于RemoteNotificationType的代码:

NSUInteger rntypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
Run Code Online (Sandbox Code Playgroud)

我得到的错误是这样的:

2014-09-29 15:46:47.416 Dummy [258:21766]在iOS 8.0及更高版本中不支持enabledRemoteNotificationTypes.

如果有人能给我解决方案,那将是一个很大的帮助.

iphone objective-c apple-push-notifications ios8

12
推荐指数
2
解决办法
1万
查看次数