Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 2, 2009, 03: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, 04: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How will we know what's going on, on Apple's event Tuesday? Spooner83 iPhone 16 Oct 2, 2011 11:31 PM
When iPhone 5 arrives... How much can we sell iPhone 4s for? smdewart iPhone 9 Feb 25, 2011 10:38 PM
How soon can we know the specs/model of the 256gb SSD drives? wirelessness iMac 4 Jul 27, 2010 03:34 PM
How can I know which TableView? mikezang iPhone/iPad Programming 22 Jul 19, 2010 06:51 PM
If the MBA is discontinued, how will we know? wildjohn999 MacBook Air 32 Jun 29, 2010 06:30 AM


All times are GMT -5. The time now is 11:28 AM.

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

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