title: UIBarButtonItem getting called only when I swipe
body: <p>I am using the BarButtonItem on top of Navigation Bar. And I have assigned a doneMethod for the BarButtonItem. It is not getting detected when I press the button, but If I try to do some swipe on top of the BarButtonItem , it is calling doneMethod. It is really strange for me. Can anyone tell me why ?
  <img src="https://i.stack.imgur.com/0dqjX.png" alt="enter image description here"></p>
  
  <p>This is the screenshot of my sample app. And in the .h File I have written method as </p>
  
  <pre><code>- (IBAction) doneButtonPressed:(id)sender;
  </code></pre>
  
  <p>and respective implementation in .m</p>
  
  <pre><code>- (IBAction) doneButtonPressed:(id)sender{
     NSLog(@"Done Button Pressed");
  }
  </code></pre>