Closed CepheusSun closed 7 years ago
一个很好的问题,之所以这样命名是因为ESTabBarController
是支持类似UIButton的高亮状态的。所以才命名成highlight。
另外
let v1 = ViewController()
v1.tabBarItem = ESTabBarItem(TabbarBasicContentView(), image: #imageLiteral(resourceName: "tabbar_hot_normal"))
这样的代码,并且在 给 v1的title
属性一个值。然后下面的标签控制器还是出现了这个值(不知道我表述清楚没有) 这个跟期望的只在 navigationbar 上出现有点出入。这样的设计是为了跟系统一致吗?毕竟我使用了 ESTabbarItem
来替代系统的 UITabbarItem
并且在创建的时候, 也没有给 title 值。
ESTabBarItem的title是和UITabBarItem的title做了桥接,在表现上是和系统一致的
很牛X的东西, 谢谢大神。
您好, 我发现
ESTabBarItemContentView
这个类的highlightTextColor
属性是其实是selectedTextColor
的意思。用 hightlight 这个词貌似有点误导的意思。当然还有highlightIconColor
. 一个小小的建议。