i am looking for a solution to customize a UISwitch the desigred looks lie this :

enter image description here

how would you managed it?

有帮助吗?

解决方案

Here is a tutorial which can help you to create custom UISwitch. It mention to ways to create custom UISwitch. Concept is to subclass UISwitch class and add custom things in it.

其他提示

You can use a UIbutton and toggle its image for On/Off. Or else if you want to make animation to toggle On/Off you should use your custom view. Please see this answer

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top