// self代表controller控制器
self.tabBarItem.badgeValue = @"2";
效果图
// 如果当你的badgeValue为0了,要让它消失
self.tabBarItem.badgeValue = nil;
消失掉
// self代表controller控制器
self.tabBarItem.badgeValue = @"2";
效果图
// 如果当你的badgeValue为0了,要让它消失
self.tabBarItem.badgeValue = nil;
消失掉
本文标题:设置TabBarItem的右上角角标
本文链接:https://www.haomeiwen.com/subject/vjbndttx.html
网友评论