判断推送权限是否开启

UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

    if(UIRemoteNotificationTypeNone != type){

        NSLog(@"开开了");

    }

    else{

        NSLog(@"关着呢");

    }

posted @ 2016-08-12 10:22  zuidap  阅读(584)  评论(0编辑  收藏  举报