Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ferny84

macrumors newbie
Original poster
Feb 3, 2011
2
0
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;

}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.