evenArray[]
包含的本地通知- 名單我有創造localnotification功能,但它在編輯調用,並添加模塊,因此多次調用並複製本地通知
- 請讓我知道情況如何檢查在這個數組中通知我當前的通知,我將只在它不重複時創建。
這是一個參數,我會需要我的通知比較這個「144 = MAS」通知144是唯一的,指數也獨特如何防止ios中的本地通知重複?
"<UIConcreteLocalNotification: 0x118b08c0>{fire date = Monday, September 29, 2014 at 6:12:00 PM India Standard Time, time zone = Asia/Kolkata (GMT+5:30) offset 19800, repeat interval = NSWeekCalendarUnit, repeat count = UILocalNotificationInfiniteRepeatCount, next fire date = Monday, September 29, 2014 at 6:12:00 PM India Standard Time, user info = {\n 144 = mas;\n index = 63;\n userid = \"821e25e7-d76c-4328-bbba-8e367dc70c04\";\n}}",
"<UIConcreteLocalNotification: 0x118b0cc0>{fire date = Monday, September 29, 2014 at 6:12:00 PM India Standard Time, time zone = Asia/Kolkata (GMT+5:30) offset 19800, repeat interval = NSWeekCalendarUnit, repeat count = UILocalNotificationInfiniteRepeatCount, next fire date = Monday, September 29, 2014 at 6:12:00 PM India Standard Time, user info = {\n 153 = mbg;\n index = 64;\n userid = \"821e25e7-d76c-4328-bbba-8e367dc70c04\";\n}}"
)
在我的代碼中,當我點擊單個通知時,它從通知中心全部清除。即使我已經分配了uid。 – user3743909 2014-09-24 11:01:24
使用此代碼可能對您有所幫助 – user2493047 2014-09-24 11:40:02