Need to change the background color of [UIButton buttonWithType:UIButtonTypeRoundedRect]];
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2808888/is-it-even-possible-to-change-a-uibuttons-background-color">Is it even possible to change a UIButtons background color?</a>  </p>
</blockquote>



<p>I am trying to change the background color of button in a UITable view.<br>
<code>
        [UIButton buttonWithType:UIButtonTypeRoundedRect]];<br>
        [self.deleteButton setTitle:@"Delete Contact" forState:UIControlStateNormal];<br>
        [self.deleteButton addTarget:self action:@selector(deleteContact) forControlEvents:UIControlEventTouchUpInside];<br>
    [deleteButton  setBackgroundColor:[UIColor redColor]];   </p>

<p></code>
But the background color of the button never changes,
  Am i doing something wrong here?
Looks like that this has something to do with UIButtonTypeRoundedRect style..</p>
