title: How to set target and action for UIBarButtonItem at runtime
body: <p>Tried this but only works for UIButton:</p>
  
  <pre><code>[btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];
  </code></pre>