Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在删除徽章编号时遇到问题,该编号在没有待处理通知的应用程序图标通知符号上始终显示红色“1”。
我该如何解决?
在应用程序生命周期中使用以下applicationDidBecomeActive任何方法..
applicationDidBecomeActive
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
当它设置为零时,它不应该显示任何徽章。