title: UIButton initWithFrame:CGRectMake not working in Xcode 9.3
body: <p>update the xcode to 9.3 and I have problems with the programmable button</p>
  
  <p>in Xcode 8 I have it in the following way and it works well</p>
  
  <pre><code>UIButton *btnSettingsButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)];
  [btnSettingsButton setBackgroundImage:[UIImage imageNamed:@"settings.png"] forState:UIControlStateNormal];
  [btnSettingsButton addTarget:self action:@selector(setttingsDashboard:) forControlEvents:UIControlEventTouchUpInside];
  [btnSettingsButton setShowsTouchWhenHighlighted:YES];
  UIBarButtonItem *btnSettingsItem =[[UIBarButtonItem alloc] initWithCustomView:btnSettingsButton];
  </code></pre>
  
  <p><strong>screen Xcode 8</strong> 
  <a href="https://i.stack.imgur.com/jiwSw.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>the image "settings.png" of the button shows me well with a height of 25 and width of 25. </p>
  
  <p>but when I actulice to xcode 9 does not take the initWithFrame: CGRectMake and it comes out much bigger. "the size of the button image</p>
  
  <p><strong>screen Xcode 9.3</strong> 
  <a href="https://i.stack.imgur.com/zYCDn.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><strong>How can i fix this?</strong></p>