标签:style io os ar for div art sp on
o modify the badge under ios8 you have to ask for permissions
let settings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Badge, categories: nil)
UIApplication.sharedApplication().registerUserNotificationSettings(settings)
or in objC
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
转 How to correctly set application badge value in iOS 8?
标签:style io os ar for div art sp on
原文地址:http://www.cnblogs.com/liangjialun219/p/3972832.html