title: UIToolbar background colour is not changing
body: <p>I am using the below code to display a toolbar as a accessory view for a picker view. I want to customise the tool bar colour. I am not sure whats wrong in this below code. Is there a better way to achieve this</p>
  
  <pre><code>UIToolbar* state_close = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 50)];
  state_close.translucent =NO; //.barStyle = UIBarStyleDefault;
  state_close.barTintColor = [UIColor colorWithRed:0.94 green:0.94 blue:0.94 alpha:1.0];
  [state_close sizeToFit];
  </code></pre>
  
  <p>Thanks in Advance</p>