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 Mar 24, 2009, 05:35 PM   #1
beardedpig
macrumors member
 
Join Date: Dec 2008
Accessing another buttons method

Is it possible to have a button that has a method that processes its tap event to another button?

So button A is tapped and all it does is pass this tap to button B so it is button B's code that runs.
beardedpig is offline   0 Reply With Quote
Old Mar 24, 2009, 06:12 PM   #2
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Why not just connect button A's action to the same method that button B is calling?
__________________
My iOS Apps: a.k.a., DreamStream
I support the MacRumors Blood Drive!
dejo is offline   0 Reply With Quote
Old Mar 25, 2009, 05:14 AM   #3
beardedpig
Thread Starter
macrumors member
 
Join Date: Dec 2008
Quote:
Originally Posted by dejo View Post
Why not just connect button A's action to the same method that button B is calling?
got it

Code:
[targetButton sendActionsForControlEvents:UIControlEventTouchUpInside];

Last edited by beardedpig; Mar 25, 2009 at 05:26 AM.
beardedpig 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
Accessing another mac from another place? MBX Mac Applications and Mac App Store 3 Apr 5, 2010 02:12 PM
delete button goes back to previous page in safari. can i set another button? jayd Mac Applications and Mac App Store 6 Aug 18, 2009 10:37 AM
instance variable 'viewController' accessed in class method Sergio10 iPhone/iPad Programming 5 May 6, 2009 08:49 AM
can iPhone access another cell phone's net access? doyoudesign iPhone 1 Jun 11, 2008 09:59 AM
can Touch access another cell phone's net access? doyoudesign iPod touch 4 Jun 11, 2008 09:33 AM


All times are GMT -5. The time now is 04:48 AM.

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

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC