标签: iphone uibutton sender
如何在
-(IBAction)clicked:(id)sender
方法
由于
答案 0 :(得分:43)
这个怎么样:
- (IBAction)clicked:(id)sender { UIButton *button = (UIButton *)sender; NSString *buttonTitle = button.currentTitle; }