title: UIButton titleEdgeInsets
body: <p>titleEdgeInsets used to align the title and the picture on the button. I did image on the left and title on the right.But when I click on the button, the title is shifting to the left. Thank you </p>
  
  <pre><code>UIImage *image = [UIImage imageNamed:imageName];
      [self setImage:image forState:UIControlStateNormal];
  
  CGSize imageSize = self.imageView.frame.size;
  CGSize titleSize = self.titleLabel.frame.size;
  
  self.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
  self.titleEdgeInsets = UIEdgeInsetsMake(0, ((self.frame.size.width-titleSize.width)/2)-imageSize.width, 0, 0);
  self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/mH46f.png" alt="status is normal"></p>
  
  <p><img src="https://i.stack.imgur.com/orMgg.png" alt="status is clicked"></p>