Tried this but only works for UIButton:
[btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];
Just set the UIBarButtonItem's target and action properties directly.
target
action
1.4m articles
1.4m replys
5 comments
57.0k users