Custom On/Off Image iOS 7.0 UI Switch

Wuzseen picture Wuzseen · Oct 16, 2013 · Viewed 29.5k times · Source

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.

Answer

Kristopher Johnson picture Kristopher Johnson · Oct 18, 2013

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