Question: Tried this but only works for UIButton:

```
[btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];

```

Answer: 
Set `target` and `action` of your `UIBarButtonItem`

**Swift 5 & 4**

```
button.target = self
button.action = #selector(action)

@objc func action (sender:UIButton) {
    print("action")
}

```
```
UIBarButtonItem *barListBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemAdd target:self action:@selector(getTruckStopListAction)];   
self.navigationItem.rightBarButtonItem = barListBtn;
[barListBtn release];

```