ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.91k stars 1.45k forks source link

[Q-A]使用方法询问: #552

Open zhangshouhai opened 3 years ago

zhangshouhai commented 3 years ago

设置暗黑模式的时候, self.tabBar.backgroundColor = UIColor.lightColorOrDarkColor(lightColor: "#FFFFFF", darkColor: "#000000")

case unspecified = 0
case light = 1
case dark = 2

判断系统是 dark 还是 light 模式,只有再给tabbar 设置颜色的时候,返回了unspecified 这个状态,位置状态。导致适配暗黑失败,请问改如何解决呢