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