我有按钮:
...
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton setTitle:annotation.title forState:UIControlStateNormal];
rightButton.tag = myCustomNumber;
[rightButton addTarget:self action:@selector(showDetails:) forControlEvents:UIControlEventTouchUpInside];
...
这是IBAction:
..
-(IBAction)showDetails:(id)sender{
// here I want to NSLOG button tag
}
...
怎么做?