I’m trying to set the UISwitch selected value and it’s not responding!
Here is my code
I set the value to UISwitch. Default value is False.
[mailSwitch setSelected:TRUE];
Can someone help me.
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.
The property you’re looking for is
on; in method form,-setOn:or-setOn:animated:.selectedis a generic property, declared on UIControl, which has no visible effect on a UISwitch.