tags:

views:

178

answers:

2

I am making the application that has needs to set the notification , thankfully i was able t set the local notification but i dont know how to delete the notification which is set by this application(my aplicaton ).The xcode does provide functionality of delete with removeAllNotifications but you cannot remove the selected notifications set by the application

+1  A: 

You can call [[UIApplication sharedApplication] cancelLocalNotification:notification] to cancel a notification. Since local notifications conform to the NSCoding protocol, they can be stored and retrieved for later canceling.

Ed Marty
thansk for your inputs but what should i add pass in notification in the mehtod[UIApplicationsharedApplication]cancelLocalNotification:notification]thanks again
mrugen
Well, you have to create the notification object at some point to schedule it, so use that object! Once you've created the notification object, you can save it to disk using the NSCoding protocol, and load it again later (i.e. next app launch) for later canceling.
Ed Marty
+1  A: 

You may find your answer here: http://stackoverflow.com/questions/3158264/cancel-uilocalnotification/3334028

hiepnd