Quote:
Originally Posted by RickMaddy
Simple. Declare your "addAA" method like this:
Code:
- (void)addAA:(id)sender {
UIButton *btn = (UIButton *)sender;
// Do stuff with 'btn'
}
|
Thanks this worked perfectly!
Code:
- (IBAction)addAA:(id)sender {
UIButton *btn = (UIButton *)sender;
NSLog(@"The button title is: '%@'", [btn titleForState:UIControlStateNormal]);
}