문제

I just want to but sure I'm understanding this correctly. It looks like the only way to have an UILocalNotification repeat ONLY ONCE 2 minutes after the first one is to schedule 2 separate local notifications. Is that right? I have seen posts similar to these:

How do I create a UILocalNotification that notifies every two minutes

https://stackoverflow.com/a/4923276/454404

https://stackoverflow.com/a/4022779/454404

They all seem to suggest the "schedule 2 notifications" route. The Apple docs clearly say that you use Calendar units for repeats. So I guess you could set one to repeat a certain number of seconds after but then you would have to cancel it. It just seems like there must be a better way.

Thanks

도움이 되었습니까?

해결책

Have not found a better way that this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top