Commit e37be5c3 authored by Steven杜宇's avatar Steven杜宇

// tab颜色

parent de7c1bec
......@@ -112,6 +112,8 @@ class YHTabBarViewController: ESTabBarController {
} else if 0 < num, num <= 99 {
badge = "\(num)"
}
tabBarItem.badgeColor = UIColor.init(hex: 0xF81D22)
tabBarItem.contentView?.badgeView.badgeLabel.font = UIFont.PFSC_M(ofSize: 10)
tabBarItem.badgeValue = badge
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment