ios-王云鹤 发送本地通知
来源:互联网 发布:义乌淘宝运营培训班 编辑:程序博客网 时间:2024/06/05 18:57
注意:发送本地通知的时候,必退出程序。
//实例化对象
UILocalNotification *notification =[[UILocalNotification alloc]init];
//定义时间,做延迟
NSDate *now =[[NSDate alloc] init ];
//延迟十秒
notification.fireDate =[now addTimeInterval:10];
//设定时区
notification.timeZone =[NSTimeZone defaultTimeZone];
//设定角标
notification.appLicationIconBadgeNumber =1;
//设置内容
notification。alertBody =@"CSDN学院欢迎您!";
//发送通知
[[UIApplication sharedApplication] scheduleLocalNotification: notification];
- ios-王云鹤 发送本地通知
- iOS发送本地通知
- iOS本地通知——每天固定时间发送通知
- iOS本地通知——每天固定时间发送通知
- iOS本地通知——每天固定时间发送通知
- iOS开发之旅--本地通知的发送与取消
- iOS开发本地通知(每天定点发送消息推送)
- iOS 本地通知 远程通知
- iOS本地通知 远程通知
- iOS本地通知&定时通知
- iOS实现本地通知
- iOS本地通知
- iOS本地通知
- iOS本地通知UILocalNotification
- IOS实现本地通知
- IOS 本地通知 UILocalNotification
- ios本地通知UILocalNotification
- iOS UILocalNotification本地通知
- js幻灯片存档一个
- iOS6.0以上系统访问系统相册隐私提示方法截获
- Python介绍
- 使用默认参数的构造函数
- ubuntu下安装jdk7(使用工具完整安装)
- ios-王云鹤 发送本地通知
- js获取浏览器的可视区域尺寸的实现代码
- MySQL DATE_FORMAT() 函数
- 在命令行中通过adb shell am broadcast发送广播通知
- MySQL数据库优化总结
- 【六招让你的Windows XP急速关机】
- struts2.0 标签+ftl标签 .
- 知名大学硕博论文及英文期刊全文资源集合
- 代码重构技巧