How to correctly set application badge value in iOS 8?
来源:互联网 发布:双拇指扫矿软件 编辑:程序博客网 时间:2024/05/22 21:27
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];
0 0
- How to correctly set application badge value in iOS 8?
- How to set a badge value on a UITabBarController item
- How to set value of Q0000-MASSN in FM HR_INFOTYPE_OPERATION
- How to set a hidden value in Razor
- how to set value for cmake arguement in command
- How to set the QT Application icon in the windows.
- How to Use PeekMessage() Correctly in Windows
- how to set value stack
- How to access a value defined in the application.properties file in Spring Boot ( Externalized Conf)
- HOWTO: How to Use PeekMessage() Correctly in Windows
- HOWTO: How to Use PeekMessage() Correctly in Windows
- HOWTO: How to Use PeekMessage() Correctly in Windows
- How to correctly use the extern keyword in C
- How to set the sequence value while saving the record in OA Framework
- Is there a way to add a badge to an application icon in Android?
- whatever how, this should be record and be researched later. ---- about how to enable gpio value set in mach_smdk6410.c
- How to change max_allowed_packet value in mysql?
- How to change max_allowed_packet value in mysql?
- 速来膜拜!20位活跃在Github上的国内技术大牛
- js 隐式转换 一小坑
- concorrent、多线程、线程池
- linux守护进程小例 与syslog
- BZOJ 1023: [SHOI2008]cactus仙人掌图
- How to correctly set application badge value in iOS 8?
- MediaXtreme
- Zookeeper
- 从各大高校到12306网站看SSL问题
- 2014互联网找工作总结(网络)
- 以后开始写点python技术文章
- FPGA基础之逻辑单元(LE or LC)的基本结构
- 函数模板
- 头插法倒置单链表