Duck
Duck

Reputation: 36003

iphone - using a UISwitch

I need to implement a view where I need the user to answer several questions using YES or NO. I thought of using a UISwitch but as far as I see it does not allows replacing the ON/OFF messages it shows with YES/NO. Am I wrong?

I thought of implementing a segmented control with 2 buttons but this is like using a cannon to kill a fly...

Any suggestions on how to do that?

thanks

Upvotes: 3

Views: 631

Answers (2)

EldenChris
EldenChris

Reputation: 1059

I think you should make custom "Yes" & "No" buttons that get selected when pushed.

This way, you'll have more control on the design and you'll be safe from Apple rejection.

Upvotes: 1

Alex Reynolds
Alex Reynolds

Reputation: 96976

ArsTechnica: Robust UISwitch label swaps

Upvotes: 3

Related Questions