title: UIButton takes up its own size Autolayout
body: <p>What I tried was this :-</p>
  
  <pre><code>UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
  [self.view addSubview:btn];
  btn.translatesAutoresizingMaskIntoConstraints = NO;
  [btn addTarget:self action:@selector(bringUpNextViewController:) 
                      forControlEvents:UIControlEventTouchUpInside];
  btn.titleLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:14];
  [btn setTitle:@"8" forState:UIControlStateNormal];
  [self.view layoutIfNeeded];
  
  NSLog(@"button size : %@", NSStringFromCGSize(btn.frame.size));
  </code></pre>
  
  <p>As output, I get this :</p>
  
  <pre><code>button size : {30, 29}
  </code></pre>
  
  <p>Then I gave <code>setTitle</code> string as nothing. The button width was still 30. </p>
  
  <p>So why is this the case always? </p>
  
  <p>I also tried giving a <code>high compression resistance priority</code> and <code>high content hugging priority</code>. Doesn't shrink to nothing.</p>
  
  <p>The problem is also the fact that I want to reduce the width of the button simply based on its content, without giving any fixed width. </p>
  
  <p>I could take the width of text and give the button the width, but I shouldn't be needing to do that either if the button was taking up the content width.</p>
  
  <p>EDIT: </p>
  
  <p>Its not the insets either which is causing the width to be <code>30</code>. Ghost value.</p>