Genadinik
Genadinik

Reputation: 18649

ios - how to customize a UISwitch to have different wording and be displayed differently?

I have a UISwitch I am working with on my storyboard, and I am having trouble changing the wording from on/off to private/public which is what I need for my app. Also I would like the switch to be horizontal and longer so that a brief explanation can be added next to it.

Is that possible? How do I do that? I am attaching a screen shot of what I currententer image description herely have.

Upvotes: 1

Views: 919

Answers (1)

Robotic Cat
Robotic Cat

Reputation: 5891

Under iOS 5 you cannot customise UISwitch apart from tintColor.

If you want onImage and offImage customisation, you might want to wait to see what iOS 6 brings.

To switch between "Public" and "Private" as if using radio buttons, you should use a UISegmentedControl which can be customised as required.

Upvotes: 1

Related Questions