Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 2, 2009, 04:56 AM   #1
vavdiyaharesh
macrumors newbie
 
Join Date: May 2008
when two UISwitch is together ... hw can we know which is on

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.
vavdiyaharesh is offline   0 Reply With Quote
Old Jan 2, 2009, 05:51 AM   #2
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
By comparing the 'sender' you get when the action method is called with the addresses of the switches.
caveman_uk is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -5. The time now is 06:45 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC