PDA

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




vavdiyaharesh
Jan 2, 2009, 03:56 AM
Hi,

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.

Thanks,
Haresh.



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