iOS Swift - User Input and Forms
You want to create a toggle switch that updates a label text to "ON" or "OFF" when toggled. Which code snippet correctly implements this behavior?
let toggle = UISwitch() let label = UILabel() // Which switchChanged method is correct?
