title: Removing right bar button item from navigation item
body: <p>I have added a right bar button item in my navigation item and want to remove this on some condition. This is what I am doing:</p>
  
  <pre><code>self.navigationItem.rightBarButtonItem = nil;
  </code></pre>
  
  <p>But not getting the desired behavior.</p>
  
  <p>I want to hide it but do not find any method for it.</p>