UITraitCollection always returns UIUserInterfaceStyle while detecting light mode or dark mode

前端 未结 0 1587
醉酒成梦
醉酒成梦 2020-12-28 11:00

I need to change the color of UIs depends on which theme mode the device is using.

After a few researches, I tried this:

-(BOOL)isDarkMode{
    if (@av         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题