问题
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