UISwitch with custom image

I need to configure UISwitch by changing the background color, as well as the image with a pen (holder), as shown in the figure below. You can configure UISwitch without rejecting the application.

enter image description here

Thanks in advance

+5
source share
1 answer

There is a property here onTintColorthat you can set in UISwitch. If you need to change the image with a pen, see DCRoundSwitch .

+7
source

All Articles