title: How to make Uibutton selected
body: <p>I have a <code>UIButton</code> which remains selected when I select that button. Here is my code:</p>
  
  <pre><code>- (IBAction)cloudclick:(UIButton *)sender {
      UIImage *bgImage = [UIImage imageNamed:@"black_cloud.png"];
      UIButton *tmpButton = (UIButton *)[self.view viewWithTag:sender.tag];
      [tmpButton setBackgroundImage:bgImage forState:UIControlStateSelected];
  
  } 
  </code></pre>
  
  <p>But it does not remain selected when I click the button. It changes the background but it does not remain as selected button. </p>