IOS8 UILocalNotification 和之前的变化
2014-09-18 17:47
190 查看
ios的本地消息需要用户允许后才可以使用
代码如下
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings];
代码如下
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings];
相关文章推荐
- iOS8 UILocalNotification 增加启动授权
- iOS8 UILocalNotification 增加启动授权
- iOS8 UILocalNotification 增加启动授权
- iOS8 UILocalNotification 添加启动授权
- iOS8 UILocalNotification 和 UIRemoteNotification 使用注意 草稿,正在整理中。。。。
- iOS8新特性之基于地理位置的消息通知UILocalNotification
- UILocalNotification在 iOS8中无效问题
- [ios] UILocalNotification实现本地的闹钟提醒【转】
- IOS下本地消息提醒UILocalNotification
- iOS开发 UILocalNotification 本地通知实现提醒功能
- 本地通知 UILocalNotification
- UILocalNotification 的使用
- iOS中的本地通知UILocalNotification
- UILocalNotification 本地通知无法删除的坑
- 解决iOS8不能正常进行本地推送问题(Attempting to schedule a local notification)
- UILocalNotification 的使用
- UILocalNotification本地通知的使用方法
- [ios] UILocalNotification实现本地的闹钟提醒【转】
- UILocalNotification的使用
- UILocalNotification实现本地的闹钟提醒的方法