1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

when two UISwitch is together ... hw can we know which is on

Discussion in 'iPhone/iPad Programming' started by vavdiyaharesh, Jan 2, 2009.

  1. macrumors newbie


    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.

  2. Guest


    By comparing the 'sender' you get when the action method is called with the addresses of the switches.

Share This Page