Today I had to admit that I did not remember the password for a MySQL user account. Since it’s saved in encrypted form simply reading it out won’t mean I can recover it. A Google search did eventually bring up the correct way of doing it, however it took me quite some time – so here’s how you can do this:
How to test the state of a UISwitch
We can use the isOn property of your switch to do this: if (flickSwitch isOn) { statusLabel.text = @”The Switch is ON”; } else { statusLabel.text = @”The Switch is OFF”; } Alternatively we can use the square-bracket notation like so: if ([flickSwitch.isOn]) { statusLabel.text = @”The Switch is ON”; } else { statusLabel.text = […]