Local Notification
来源:互联网 发布:淘宝店铺红包幸运抽奖 编辑:程序博客网 时间:2024/06/06 17:39
Listing4-3 Scheduling an alarm notification
- (void)scheduleAlarmForDate:(NSDate*)theDate
{
UIApplication* app = [UIApplication sharedApplication];
NSArray* oldNotifications = [app scheduledLocalNotifications];
// Clear out the old notification before scheduling a new one.
if ([oldNotifications count] > 0)
[app cancelAllLocalNotifications];
// Create a new notification.
UILocalNotification* alarm = [[[UILocalNotification alloc] init] autorelease];
if (alarm)
{
alarm.fireDate = theDate;
alarm.timeZone = [NSTimeZone defaultTimeZone];
alarm.repeatInterval =0;
alarm.soundName =@"alarmsound.caf";
alarm.alertBody =@"Time to wake up!";
[app scheduleLocalNotification:alarm];
}
}
- local notification
- local notification
- Local Notification
- Local Notification
- ios local notification
- iOS Local Notification
- Local/Remote Notification
- iOS Local Notification学习笔记
- background and notification of local
- iOS Local Notification学习笔记
- iOS Local Notification学习笔记
- iOS Local Notification学习笔记
- 推送(本地Local Notification)
- Push Notification、Local Notification、broadcast Notification的区别
- iphone 如何添加本地通知(local notification)
- iphone 如何添加本地通知(local notification)
- Local and Push Notification Programming Guide
- iOS之Local Notification(本土通知)
- listview android:cacheColorHint,android:listSelector属性作用
- Java中Runnable和Thread的区别
- Eclipse之相关快捷键
- android pcm编解码
- Android网络通信(一)
- Local Notification
- [VS2010]_[初级]_[常用快捷键]
- 任务管理器中cpu使用记录中显示的窗口个数
- ios 关于推送发布的一些流程
- Canvas基础
- android ListView 几个重要属性
- HandlerThread分线程启动handler
- iOS访问https ssl和tls双向加密
- 使用文件名的间接