【APNs】Scheduling the Delivery of Local Notifications
来源:互联网 发布:eclipse优化运行速度 编辑:程序博客网 时间:2024/06/05 09:23
- (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]; 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]; }}
Schedule and Post Local Notification
0 0
- 【APNs】Scheduling the Delivery of Local Notifications
- Scheduling Local Notifications(调度本地通知)
- Local Notifications
- local notifications
- Local Notifications and Push Notifications
- Local and Remote Notifications
- Definition of 'Cash Settlement( versus physical delivery of the reference obligation)
- Sending iOS Push Notifications via APNS in JavaScript
- 【linux】【sendmail】Disable local delivery in Sendmail
- Creating, configuring, and scheduling a local notification
- POD – Proof of Delivery
- Notifications and the Notification Area
- THE PAST, PRESENT & FUTURE OF LOCAL STORAGE FOR WEB APPLICATIONS
- VS2010 can not watch the value of local variables
- the thinking and solving of local storage problem
- Event Delivery: The Responder Chain
- Event Delivery: The Responder Chain
- Notifications
- EXCEL排序
- 让screen帮助你协同工作
- 一个驾照考试系统,让我学习了io操作和配置读写知识
- 5、Android中Json文件的制作与使用
- ffmpeg编译总结
- 【APNs】Scheduling the Delivery of Local Notifications
- 程序员的职业发展
- 【转】对新手程序员的一些唠叨
- 最长公共子序列
- SQL Server 如何在运行时重编译存储过程
- opengl es 学习笔记(一):流水线
- UTF8编码页面提交参数登录到GB2312编码处理
- vim 括号匹配 以及各种跳转技巧.
- chrome开发者工具使用文章一两篇