就是一个小圆点
|
xuan_lengyueJul 12, 2014
1
给 TabBar 加 subview 即可,很简单。
|
|
fangzhzhJul 12, 2014
2
加个imageiew?
|
|
hoogleJul 12, 2014 via iPhone
3
badge = @""
|
|
hoogleJul 12, 2014 via iPhone
4
自定义大小、形状、颜色的话可以考虑AddSubview到bar或者生成一个带点的barItem image
|
|
5
badge 生成的太大,生成带点的图片不通用,看来AddSubview比较可行
|
|
79bxh9bJul 13, 2014
6
UITabBarItem不属于uiview吧,能加subview?
|
|
dopcnJul 15, 2014
7
UITabBarItem 在 UITabBar 上,加在 bar 上吧
|
|
skingtreeJul 16, 2014
8
badgeValue
Text that is displayed in the upper-right corner of the item with a surrounding red oval. @property(nonatomic, copy) NSString *badgeValue -- UITabBarItem |
|
skingtreeJul 16, 2014
9
要不自己加个uiview,setBackgroundColor,再设置一下layer.cornerRadius
|