判断用户通知
UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
if (UIUserNotificationTypeNone != setting.types) {
NSLog(@"打开通知");
} else {
NSLog(@"未打开通知");
}
判断用户通知
UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings];
if (UIUserNotificationTypeNone != setting.types) {
NSLog(@"打开通知");
} else {
NSLog(@"未打开通知");
}
本文标题:判断用户通知
本文链接:https://www.haomeiwen.com/subject/ivojottx.html
网友评论