Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom On/Off Image iOS 7.0 UI Switch

Tags:

In iOS 7 switches don't allow custom on/off images by default. While I can still set them in the Interface Builder it doesn't show up.

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/TransitionGuide.pdf

The transition guide merely notes that it isn't on by default anymore. Presumably there is a way to change that so I do use the images I have.

like image 299
Wuzseen Avatar asked Oct 16 '13 17:10

Wuzseen


2 Answers

Can you use a UIButton instead, using the "selected" state to mean "on"?

like image 78
Kristopher Johnson Avatar answered Oct 11 '22 10:10

Kristopher Johnson


Apple never let this feature go live... I believe you can file a bug report about it if you want to see it in the future...

I've got around this issue by using a drop in replacement called SevenSwitch.

like image 31
liamnichols Avatar answered Oct 11 '22 10:10

liamnichols