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 Feb 3, 2011, 07:06 PM   #1
Ferny84
macrumors newbie
 
Join Date: Feb 2011
How to obtain properties from a button and send to label?

I have a keypad where if the user pushes a number (lets say 1) and it gets sent to a label.

This is what I have so far, i'm trying to use myButton titleLabel.

Code:
-(IBAction)numberPressed:(id)sender
{
	NSLog(@"number pressed");
	UIButton *myButton = ( UIButton* ) sender;
	NSString *buttonLabel= [myButton titleLabel].text;

}
Ferny84 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 to supercharge Mini? ranny2 Mac mini 18 Oct 27, 2011 08:53 PM
How To Remove Server Part Of Lion? hhaydenn iMac 2 Aug 18, 2011 05:21 PM
How to restore data from some apps, and not via a full restore from backup? TimSS iPhone Tips, Help and Troubleshooting 2 Jun 17, 2010 01:16 PM
How to set a group of coworkers and send email to all at once Ed4132 Mac Applications and Mac App Store 2 Aug 23, 2009 07:48 PM
How to take parts from some pics and put them into one? iPhoto or .....? Gloor Mac Applications and Mac App Store 6 Jan 12, 2008 11:40 PM


All times are GMT -5. The time now is 02:21 PM.

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

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