简体   繁体   English

iOS3的UILocalNotification替代

[英]UILocalNotification alternative for iOS3

I am building an iPhone application and I want to use UILocalNotification to schedule an alarm for an event. 我正在构建一个iPhone应用程序,并且我想使用UILocalNotification安排事件警报。 The problem is that UILocalNotification only works from iOS4, and I want to try and make my application compatible with iOS3 too. 问题是UILocalNotification仅可在iOS4上使用,我想尝试使我的应用程序也与iOS3兼容。

I have found a way to detect if UILocalNotification is available on given iOS version. 我找到了一种方法来检测UILocalNotification是否在给定的iOS版本上可用。 I am now wondering if there is an alternative for UILocalNotification that can be used on an iPhone with iOS3 to schedule an alarm or notification. 我现在想知道是否有UILocalNotification的替代方案,可以在具有iOS3的iPhone上使用它来安排警报或通知。

Push notification are your only option. 推送通知是您唯一的选择。

They requires a network connection, a server of your own and are way more complicated to implement then local notification but are the only way to go in iOS 3. 它们需要网络连接,自己的服务器,并且实现起来比本地通知要复杂得多,但这是iOS 3中唯一的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM