iOS 本地通知
来源:互联网 发布:淘宝披肩外套 编辑:程序博客网 时间:2024/04/30 17:33
// 代码如下,是转载别处的,别处也是转载其他地方的,就未写明出处了。发现在xcode 5.1 的模拟器上可以测试,在xcode 6 上的模拟器就出不来,浪费了我不少的时间。
UILocalNotification *notification=[[UILocalNotification alloc] init];
if (notification!=nil) {
NSLog(@">> support local notification");
NSDate *now=[NSDate new];
notification.fireDate=[now dateByAddingTimeInterval:3];
notification.timeZone=[NSTimeZone defaultTimeZone];
notification.alertBody=@"该去吃晚饭了!";
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
}
0 0
- iOS 本地通知 远程通知
- iOS本地通知 远程通知
- iOS本地通知&定时通知
- iOS实现本地通知
- iOS本地通知
- iOS本地通知
- iOS本地通知UILocalNotification
- IOS实现本地通知
- IOS 本地通知 UILocalNotification
- ios本地通知UILocalNotification
- iOS UILocalNotification本地通知
- iOS实现本地通知
- iOS实现本地通知
- IOS实现本地通知
- iOS-本地通知
- IOS 本地通知
- IOS本地推送通知
- iOS本地通知:UILocalNotification
- 最小生成树计数模版
- web如何执行window下的exe文件
- 无废话WCF入门教程五[WCF的通信模式]
- <!DOCTYPE> 标签的含义以及是否可以省略
- RMAN备份与恢复—将数据文件或表空间还原到新位置
- iOS 本地通知
- 配置ETags(下)
- Vector Quantization (VQ) 向量量子化是什么?
- SAP ABAP编程 OTF转换成PDF
- afinal.FinalBitmap错误
- Android 分享一个简单有趣的动画效果
- objective-c-风格规范篇
- at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:353)
- Java生成验证码 Spring security 加验证码