最佳答案
用于在标签栏图标上方显示指示器。它对于通知用户某个选项卡上有新数据非常有用。
来自 UITabBarItem
documentation :
Text that is displayed in the upper-right corner of the item with a surrounding red oval.
上面是一个标签栏项目,在 Storyboard中设置了 Badge
值为 3
。
(也可以使用 badgeValue
属性以编程方式设置该值。)
关于xcode - 选项卡栏项目的属性检查器中的 "Badge"字段代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44101554/