判断推送权限是否开启

UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

    if(UIRemoteNotificationTypeNone != type){

        NSLog(@"开开了");

    }

    else{

        NSLog(@"关着呢");

    }

群号:186052819
原文地址:https://www.cnblogs.com/zuidap/p/5763937.html