![]() | 1 xuan_lengyue 2014-07-12 20:18:53 +08:00 给 TabBar 加 subview 即可,很简单。 |
![]() | 2 fangzhzh 2014-07-12 20:36:00 +08:00 加个imageiew? |
![]() | 3 hoogle 2014-07-12 20:56:35 +08:00 via iPhone badge = @"" |
![]() | 4 hoogle 2014-07-12 20:59:34 +08:00 via iPhone 自定义大小、形状、颜色的话可以考虑AddSubview到bar或者生成一个带点的barItem image |
![]() | 5 xuming OP badge 生成的太大,生成带点的图片不通用,看来AddSubview比较可行 |
![]() | 6 79bxh9b 2014-07-13 23:12:39 +08:00 UITabBarItem不属于uiview吧,能加subview? |
![]() | 7 dopcn 2014-07-15 16:00:36 +08:00 UITabBarItem 在 UITabBar 上,加在 bar 上吧 |
![]() | 8 skingtree 2014-07-16 10:56:12 +08:00 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 2014-07-16 10:58:47 +08:00 要不自己加个uiview,setBackgroundColor,再设置一下layer.cornerRadius |