views:

28

answers:

1

How can i obtain the text of a UIButton in my

-(IBAction)clicked:(id)sender

method?

Thanks

+1  A: 

What about this:

- (IBAction)clicked:(id)sender {
  UIButton *button = (UIButton *)sender; 
  NSString *buttonTitle = button.currentTitle;
}
Douwe Maan
thanks for that
joec