How do I make a UISwitch under iOS 7 not take the background colour of the view behind it?

后端 未结 6 471
终归单人心
终归单人心 2021-02-02 11:27

It looks like this whenever off:

\"enter

While I\'d prefer more of a grey backgrou

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 12:04

    You can set the setOnTintColor property of your UISwitch to the color you desire.

提交回复
热议问题