Wednesday, May 22, 2013

cancelAllLocalNotifications example UIApplication ios


[UIApplication cancelAllLocalNotifications]

Cancels the delivery of all scheduled local notifications.
- (void)cancelAllLocalNotifications


Example of [UIApplication cancelAllLocalNotifications]

[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
[[UIApplication sharedApplication] cancelAllLocalNotifications];

Example of [UIApplication cancelAllLocalNotifications]
[[UIApplication sharedApplication] cancelAllLocalNotifications];