title: UIButton: how to center an image and a text using imageEdgeInsets and titleEdgeInsets?
body: <p>If I put only an image in a button and set the imageEdgeInsets more close to the top, the image stays centered and all works as expected:</p>
  
  <pre><code>[button setImage:image forState:UIControlStateNormal];
  [button setImageEdgeInsets:UIEdgeInsetsMake(-15.0, 0.0, 0.0, 0.0)];
  </code></pre>
  
  <p>If I put only a text in a button and set titleEdgeInsets more close to the bottom, the text stays centered and all works as expected:</p>
  
  <pre><code>[button setTitle:title forState:UIControlStateNormal];
  [button setTitleEdgeInsets:UIEdgeInsetsMake(0.0, 0.0, -30, 0.0)];
  </code></pre>
  
  <p>But, if I put the 4 lines together, the text interferes with the image and both lost the center alignment.</p>
  
  <p>All my images has 30 pixels width, and if I put 30 in the left parameter of UIEdgeInsetMake for setTitleEdgeInsets, the text is centered again. The problem is that the image never gets centered because it appears that it is dependent of the button.titleLabel size. I already tried many calculations with button size, image size, titleLabel size and never get both perfectly centered.</p>
  
  <p>Someone already had the same problem?</p>