title: Custom UIView doesn't look as expected
body: <p>I would like to create a custom UIView so I could use it among a few UIViewControllers.</p>
  
  <p>I created a xib file that looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vFcls.png" alt="enter image description here"></p>
  
  <p>The Above image has UIView, and inside 3 UIButtons</p>
  
  <ol>
  <li>I created TopBar : UIView</li>
  <li>I set the view size to freeform and the status bar to no.</li>
  <li>I set the File's Owner class to TopBar</li>
  <li>I dragged the UIView (which includes the 3 UIButtons) and called it contentView</li>
  <li>I added in TabBar.m the method:</li>
  </ol>
  
  <hr>
  
  <pre><code>-(void)awakeFromNib {
      [[NSBundle mainBundle] loadNibNamed:@"TopBar" owner:self options:nil];
      [self addSubview: _contentView];
  }
  </code></pre>
  
  <hr>
  
  <ol start="6">
  <li>I added to my UIViewController via storyboard the UIView and set its class to TopBar and its size to the UIView size in the xib</li>
  </ol>
  
  <p>However, the result looks like this:</p>
  
  <p>Why? What is wrong? (as you can see the buttons are extremely big and have spaces between them). I am supporting only Ios6 and above</p>
  
  <p><img src="https://i.stack.imgur.com/pdsVU.png" alt="enter image description here"></p>