Is there either a way to implement UISwitch with custom graphics for the switch-states?
Or as an alternative the other way round, an UIButton with UISwitch functionality?
Is there either a way to implement UISwitch with custom graphics for the switch-states?
Share
UIButtonalready supports a “switch” functionality.Just set a different image in Interface Builder for the “Selected State Configuration”, and use the
selectedproperty ofUIButtonto toggle its state.