View Full Version : when two UISwitch is together ... hw can we know which is on

Jan 2, 2009, 03:56 AM

I have used two UISwitch for different purpose. but now how can i getr that this switch is on and this switch is off.

I know one method give differenet action method to them, but i want to get action in one single method because in my n ext apps i have to use more than 10 UISwitch in single view.

so anyone can tell me how can do that when i have more UISwitch.


Jan 2, 2009, 04:51 AM
By comparing the 'sender' you get when the action method is called with the addresses of the switches.