Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
实现提醒功能的推荐方法是什么,它可以使应用程序处于非活动状态并在预定时间唤醒它?
在前台使用NSTimer似乎没问题,但用户应该能够设置提醒、关闭应用程序并执行其他操作。
NSTimer
这是怎么做到的?
查看本地通知:
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
http://developer.apple.com/library/ios/#documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#//apple_ref/occ/cl/UILocalNotification