title: Load custom UIView with XIB from a View Controller's view using IB
body: <p>I have a custom <code>UIView</code> (<code>MyCustomUIView</code>) which is built using Interface Builder. I'd like to place this custom view in <code>MyViewController</code>'s view, which is also designed using IB. I've placed an <code>UIView</code> as a subview in <code>MyViewController</code>'s XIB and set it's class to <code>MyCustomUIView</code>. The problem is, when I run the code, only a blank view appears. (When I instantiate <code>MyCustomUIView</code> in code, it displays well.)</p>
  
  <p>I'm only overriding the <code>initWithFrame:</code> method the following way in <code>MyCustomUIView.m</code>:</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame
  {
      [[NSBundle mainBundle] loadNibNamed:@"MyCustomUIView" owner:self options:nil];
      self = self.view;
      return self;
  }
  </code></pre>
  
  <p>What should I do to make the view load properly? How should <code>initWithCoder:</code> look like?</p>