UILocalNotification Problem

爷,独闯天下 提交于 2019-12-04 20:50:35

Check out this blog http://useyourloaf.com/blog/2010/9/13/repeating-an-ios-local-notification.html

Has a tutorial on how to repeat notifications with an xcode project.

Also maybe it is worth using

NSLog(@"Count: %i", [[[UIApplication sharedApplication] scheduledLocalNotifications] count]); 

To check how many notifications your app has registered?

jissa you can't set a 5 minute interval by doing a 5 * NSMinuteCalendarUnit. The current implementation of UILocalNotification does not allow you to fine tune the interval. So you're stuck with every second, every minute, every hour, every day, every week, every month... etc etc.

I've filed a bug report/enhancement at http://bugreport.apple.com/

You may take a look at my report archived at Open Radar: http://openradar.appspot.com/radar?id=759402

According to Marco, developer of Instapaper, Apple prioritizes enhancement and feature requests partly based on how many developers are requesting them.

If this feature is important to you I urge you to file a report as well.

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