推送通知是否被系统禁用的状态

可不能够获取到推送通知是否被系统禁用的状态 spa

if (IS_IOS8) it

                

            { io

                if ([[UIApplication sharedApplication] currentUserNotificationSettings].types!=0) { 推送

                    cell.detailTextLabel.text=NSLocalizedString(@"basic_set_money_unit_Open", @"已开启"); ab

                }else 系统

                {

                    cell.detailTextLabel.text=NSLocalizedString(@"basic_set_money_unit_Not open", @"未开启");

                }

            }

            

            else

                

            {

                if ([[UIApplication sharedApplication] enabledRemoteNotificationTypes]==0) {

                    cell.detailTextLabel.text=NSLocalizedString(@"basic_set_money_unit_Not open", @"未开启");

                }else

                {

                    cell.detailTextLabel.text=NSLocalizedString(@"basic_set_money_unit_Open", @"已开启");

                }

//                UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

            }

相关文章
相关标签/搜索