문제

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