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

    Joined:
    May 15, 2008
    #1
    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.
     
  2. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    By comparing the 'sender' you get when the action method is called with the addresses of the switches.
     

Share This Page