Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
你要哪里的徽章?标准徽章可以通过 badgeValue 属性轻松添加到 UITabBarItem 中。它记录在此处。
badgeValue
UITabBarItem
Where do you want the badge? The standard badge can trivially be added to a UITabBarItem through the badgeValue property. It is documented here.
我正在使用 Sascha Paulus 的这个 -http:// www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en
这是一个可以放入项目中的类,很容易自定义满足您所寻找的外观。我对红色徽章中的数字的位置有一个小问题,所以我稍微移动了它。除此之外,一切都很好。
I am using this by Sascha Paulus -http://www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en
Which is a class that you can drop into your project, easy enough to customize for the appearance you are looking for. I had a slight issue with the placement of the number within the red badge so I shifted it slightly. Other than that, all good.
这个看起来 100% 像 Apple 的,而且它也是完全可定制的: https://github.com/JaviSoto/JSBadgeView< /a>
This one looks 100% like the Apple one and it's also completely customizable: https://github.com/JaviSoto/JSBadgeView
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
你要哪里的徽章?标准徽章可以通过
badgeValue
属性轻松添加到UITabBarItem
中。它记录在此处。Where do you want the badge? The standard badge can trivially be added to a
UITabBarItem
through thebadgeValue
property. It is documented here.我正在使用 Sascha Paulus 的这个 -
http:// www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en
这是一个可以放入项目中的类,很容易自定义满足您所寻找的外观。我对红色徽章中的数字的位置有一个小问题,所以我稍微移动了它。除此之外,一切都很好。
I am using this by Sascha Paulus -
http://www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en
Which is a class that you can drop into your project, easy enough to customize for the appearance you are looking for. I had a slight issue with the placement of the number within the red badge so I shifted it slightly. Other than that, all good.
这个看起来 100% 像 Apple 的,而且它也是完全可定制的: https://github.com/JaviSoto/JSBadgeView< /a>
This one looks 100% like the Apple one and it's also completely customizable: https://github.com/JaviSoto/JSBadgeView