0
A
回答
1
在您的通知UILocalNotification *notification = [[UILocalNotification alloc]init];
之後,您需要設置repeatInterval
通知的屬性。
所以:
UILocalNotification *notification = [[UILocalNotification alloc]init];
...
notification.repeatInterval = NSDayCalendarUnit;
...
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
注:隨着NSDayCalendarUnit
無通貨膨脹將每天重複。如果你願意,你可以使用其他常量來重複每週或其他任何事情。
所以,你可能想,如果你需要其他的重複間隔來看看:這常量定義。
相關問題
- 1. 設置findspark.init()永久
- 2. c#windows 10永久通知
- 3. 通過腳本設置永久路徑
- 4. ULIMIT:如何永久設置限制
- 5. 如何使Eclipse顏色設置永久?
- 6. 如何永久設置matplotlib pyplot風格?
- 7. 如何永久設置環境變量?
- 8. 如何永久設置環境變量?
- 9. 如何在Mysql中永久設置group_concat_max_length?
- 10. 如何永久更改MTU設置
- 11. 永久性設置配置變量
- 12. 永久設置npm代理的位置?
- 13. 如何永久
- 14. VS2012智能感知建議模式永久設置?
- 15. 如何將ImageView永久設置在TranslateAnimation後的某個位置
- 16. 如何設置OnGoing通知?
- 17. 如何設置通知
- 18. 如何設置通知
- 19. 永久設置「rvm use ruby-1.9.3」?
- 20. 在windows中設置永久變量%username%
- 21. 永久設置環境路徑
- 22. 永久設置環境變量
- 23. 在PHP中設置永久性Cookie
- 24. Asp.NET身份設置永久性Cookie後
- 25. Laravel3:必須永久設置的變量
- 26. 永久設置新的圖像源
- 27. 永久保存chrome devtools設置
- 28. 我怎麼設置永久的octopress 3
- 29. 將serveroutput永久設置爲ON?
- 30. 永久設置Postgresql模式路徑
這將設置一個通知,並重復每一天? – Aleph72 2012-07-12 08:04:32
那就對了,notification.repeatInterval = NSDayCalendarUnit;線。 – tomidelucca 2012-07-12 08:07:14
這就是我正在尋找的。非常感謝你! – Aleph72 2012-07-12 08:08:36