Why UISwitch onImage/offImage properties are not working on iOS 7?

前端 未结 1 1902
攒了一身酷
攒了一身酷 2021-01-21 04:59

Whats the point of having these two options/properties and deprecate them?

From Apple docs:

offImage
The image displayed while the switch is in the off p         


        
相关标签:
1条回答
  • 2021-01-21 05:47

    Use UIButton's selected property to use it as a switch. Set images for UIButton's UIControlStateSelected and UIControlStateNormal to customise it.

    0 讨论(0)
提交回复
热议问题