我正在开发一个iPhone应用程序,其中有一个部分,用户可以在其中声明他的任务及其及时发生的情况。
即递归任务。该任务在到期时只会显示一个警报框,不会显示任何其他内容。
它是一种提醒,而不是真正的任务调度程序。
使用 Objective-C 实现这一目标的最佳方法或技术是什么,特别是在 iPhone 上。
我也在考虑与 iPhone 日历进行某种集成,如果实施起来不是太耗时的话。让应用程序创建自己的日历会很好吗?
谢谢
I am developing an iphone app, there's a section in it where user can declare his task and its occurence in time.
I.e. recursive task. The task will only show an alert box and nothing else when its due time.
Its a kind of reminder, rather than a real task scheduler.
What's the best way or technology to achieve that with objective-c, particularly on iphone.
I was also thinking, if not too time consuming to implement, about some kind of integration with iphone calendar. Would it be nice to have the app create its own calendar.
thanks
发布评论
评论(2)
我认为这是使用的好方法之一。您可以定义对象及其选择器,以便在一段时间后,计时器将调用类似
[targer PerformSelector:aSelector];
更多详情
I think this is one of the good methods to use. You can define the object and its selector so that after a period of time, the timer will call something like
[targer performSelector:aSelector];
More Details here
您应该考虑使用推送通知
更多信息:http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
You should look into using a Push Notification
More info: http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html