We have a requirement in our iOS5/6 app to remove the badge number from our app icon, but leave the notification text in the notification center. Setting the badge number to 0 clears out the notification text as well.
Our potential solution is to set the badge number to -1, which seems to do exactly what we are looking for. Does anyone else have any experience with doing this?
当您打开应用程序并将应用程序标志设置为0时,将清除通知中心的所有通知。
This works as expected in iOS 5 and 6.0. We are able to remove the badge icon, but not the notification text by setting the badge number to -1.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.