ios 本地提醒
2016-01-12 14:20
357 查看
UILocalNotification *noti =[UILocalNotification
new];
noti.alertTitle =@"hahah";
noti.alertBody =@"iiiî11111111";
noti.applicationIconBadgeNumber =9;
noti.soundName =UILocalNotificationDefaultSoundName;
noti.category =@"CATEGORY";
noti.fireDate =[NSDate
dateWithTimeIntervalSinceNow:10];
[[UIApplication
sharedApplication]scheduleLocalNotification:noti];
UIUserNotificationSettings *seting =[UIUserNotificationSettings
settingsForTypes:UIUserNotificationTypeBadge |
UIUserNotificationTypeSound |UIUserNotificationTypeAlert
categories:nil];
[application registerUserNotificationSettings:seting];
new];
noti.alertTitle =@"hahah";
noti.alertBody =@"iiiî11111111";
noti.applicationIconBadgeNumber =9;
noti.soundName =UILocalNotificationDefaultSoundName;
noti.category =@"CATEGORY";
noti.fireDate =[NSDate
dateWithTimeIntervalSinceNow:10];
[[UIApplication
sharedApplication]scheduleLocalNotification:noti];
UIUserNotificationSettings *seting =[UIUserNotificationSettings
settingsForTypes:UIUserNotificationTypeBadge |
UIUserNotificationTypeSound |UIUserNotificationTypeAlert
categories:nil];
[application registerUserNotificationSettings:seting];
相关文章推荐
- IOS 用keychain(钥匙串)保存用户名和密码
- iOS--加载cell
- Not a PNG file iOS 真机上报错 模拟器上能顺利运行
- iOS 正则表达式-判断邮箱、手机号
- iOS入门学习(页面间传值)
- iOS日期计算整理
- iOS 单例
- 如何优雅地进行页面间的跳转(iOS)
- iOS8中如何将状态栏的字体颜色改为白色
- IOS流媒体播放
- ios中摄像头/相册获取图片,压缩图片,上传服务器方法总结
- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- 基于IOS下的支付宝SDK的学习与使用——实现产品支付(二)
- iOS多线程gcd
- iOS图像处理片段
- iOS View的旋转
- ios开发--旋转、移动、缩放手势实例代码
- iOS 终端导出推送p12 文件
- iOS 3D touch
- iOS性能优化三部曲(初级)