I have a UISegmentControl where I’d like if none of the segments are selected when the segment first loads.
Is this possible or do I need to write some custom control?
Many Thanks,
-Code
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just uncheck the ‘selected’ checkbox for each segment in the Interface Builder Inspector.
EDIT:
If you are doing it through code, this should happen by default. See the discussion for selectedSegmentIndex –
value of UISegmentedControlNoSegment is -1. So no segment will be selected by default