Iphone 应用程序中应用程序图标上的徽章 [英] Badge on App Icon in Iphone App
本文介绍了Iphone 应用程序中应用程序图标上的徽章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在应用程序图标中获得徽章通知,类似于标签栏项目中的徽章通知.?我需要这个来通知新消息.
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屋!
查看全文