iPhone未读取在tabbar上计数 [英] iPhone unread counts on tabbar
本文介绍了iPhone未读取在tabbar上计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想模仿SMS或Mail应用程序的行为,显示未读消息计数到我的应用程序的用户,红点包含一个数字。
解决方案
您正在查看的属性被称为徽章。您可以通过执行以下操作来设置:
self.tabBarItem.badgeValue = @1;
Which is the best way to implement on Cocoa Touch the unread counts on a icon on a TabBar?
I want to mimic the SMS or Mail application behavior, showing the unread message count to the user of my application, with a red dot containing a number.
解决方案
The property you're looking for is called the badge. You set it by doing something like:
self.tabBarItem.badgeValue = @"1";
这篇关于iPhone未读取在tabbar上计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文