title: How to add a background colour to BarButton
body: <p>The UINavigationBar is RedColour. </p>
  
  <pre><code>UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithTitle:@"Hello" style:UIBarButtonItemStylePlain target:self action:@selector(bbPressed:)];
  
  self.navigationItem.rightBarButtonItem=barButton ;
  </code></pre>
  
  <p>Now i need to give a black background colour for the above BarButton. How can i do this programatically ?</p>
  
  <p>I have tried this using the IB and it works, but i need to do it using code only.</p>
  
  <p>Steps how to do it in IB;</p>
  
  <p>change background colour to <code>RED</code>.
  Change the style to - <code>BlackTranslucent</code></p>
  
  <p>I tried setting these using the code but it doesn't work.</p>
  
  <p>Help</p>