change Badge and push notification in iPhone SDK
问题 I tried the push notification tutorial . It's working fine but problem is badge. When I click on the view, app is appear and the close it. it still red badge in app icon. How to remove it ? Another question is when I click the view, it will appear home screen. I want to show other view when coming from push notification. 回答1: This will reset the application badge number. If you set that value to zero, it will hide the badge. [UIApplication sharedApplication].applicationIconBadgeNumber =