在Iphone应用程序中的应用程序图标上的徽章 [英] Badge on App Icon in Iphone App
本文介绍了在Iphone应用程序中的应用程序图标上的徽章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在应用图标中获取徽章通知,类似于tabbar项目中的徽章通知。我需要这个来通知新消息。
How could we get a badge notification in the app icon , similar to badge notifications in tabbar item.? I need this for notifying new messages.
推荐答案
您可以设置应用程序图标的徽章编号,如下所示:
You can set the app icon's badge number like this:
[UIApplication sharedApplication].applicationIconBadgeNumber = 3;
这篇关于在Iphone应用程序中的应用程序图标上的徽章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文