UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if(UIRemoteNotificationTypeNone != type){
NSLog(@"开开了");
}
else{
NSLog(@"关着呢");
}
时间: 2024-11-13 08:16:42
UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if(UIRemoteNotificationTypeNone != type){
NSLog(@"开开了");
}
else{
NSLog(@"关着呢");
}