I just want to note that it is much better to ask for the on property of an NSSwitch/UISwitch.
Otherwise you could encounter malfunction if something else changes the same property of what you are controlling.
if(mySwitch.on) { // do something
} else { // do the reverse thing
}
RionKaneshiro 4 weeks ago
@RionKaneshiro I didn't get your comment man.
In tutorial 15 , i implemented it the same way you referred to.
ProgrammingTutor0 3 weeks ago
I just want to note that it is much better to ask for the on property of an NSSwitch/UISwitch.
Otherwise you could encounter malfunction if something else changes the same property of what you are controlling.
if(mySwitch.on) { // do something
} else { // do the reverse thing
}
RionKaneshiro 4 weeks ago
@RionKaneshiro I didn't get your comment man.
In tutorial 15 , i implemented it the same way you referred to.
ProgrammingTutor0 3 weeks ago