Observing "on" property of UISwitch does not trigger notification when toggling

Originator:voxar
Number:rdar://10751367 Date Originated:25-Jan-2012 10:36 AM
Status:Open Resolved:
Product:iPhone SDK Product Version:5.0
Classification:Other Bug Reproducible:Always
 
Summary:
An observer for the 'on' property of an UISwitch does not trigger if the switch is toggled via touch or gesture.

Steps to Reproduce:
* Add an observer to the 'on' property of an UISwitch.
* Toggle the switch from the UI

Expected Results:
observeValueForKeyPath:ofObject:change:context: of the observer to be called.

Actual Results:
Nothing.

Regression:

Notes:
Additionally it would also be handy if UIControlEventValueChanged would trigger from setting the on property by code.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!