Alarm Even Application Closed in iPhone

霸气de小男生 提交于 2019-12-24 02:18:33

问题


I am working on iPhone application in which there is an option for Alarm. Is it possible to araise alarm even my application close.


回答1:


Yes to a certain degree there is, check out the local notifications programming guide (local notifications are available in iOS 4 and newer).

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html




回答2:


Use UILocalNotification to set the notifications. Then even your application is not in foreground you will get alerts.




回答3:


Use local notification available in 4.0. for a tutorial see this link



来源:https://stackoverflow.com/questions/4733931/alarm-even-application-closed-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!