Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS remove notification from notification center [duplicate]

Possible Duplicate:
iOS application: how to clear notifications?

is there a way how to remove notification from notification center(iOS 5) when I click it and start my application ? Thanks a lot

like image 668
mysho Avatar asked Feb 20 '23 23:02

mysho


1 Answers

Set the applicationIconBadgeNumber property of your UIApplication instance to 0. That is,

[UIApplication sharedApplication].applicationIconBadgeNumber = 0;

Edit: In the current iOS SDK, you can't remove just a single notification from the Notification Center programatically.

like image 154
Adam Wright Avatar answered Mar 08 '23 15:03

Adam Wright