判断推送权限是否开启

UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

    if(UIRemoteNotificationTypeNone != type){

        NSLog(@"开开了");

    }

    else{

        NSLog(@"关着呢");

    }

posted @   zuidap  阅读(586)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示