Remove a local notification from iPhone by Date

前端 未结 1 1261
情深已故
情深已故 2021-01-14 18:45

there is the possibility of a LocalNotification on the iPhone to load on a date? My problem is that I create an event for the notification but i release the object after cre

相关标签:
1条回答
  • 2021-01-14 19:43

    scheduledLocalNotifications will give you the list of all scheduled notifications and use

    - (void)cancelLocalNotification:(UILocalNotification *)notification

    or you can cancel them all using:

     [[UIApplication sharedApplication] cancelAllLocalNotifications];
    
    0 讨论(0)
提交回复
热议问题