标签:
UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if(UIRemoteNotificationTypeNone != type){
NSLog(@"开开了");
}
else{
NSLog(@"关着呢");
判断推送权限是否开启
原文地址:http://www.cnblogs.com/zuidap/p/5763937.html