title: Load a UIView from a NIB as a subview of another UIView loaded also from a NIB
body: <p>The idea basically is:<br>
  Inside of <code>myViewController</code> NIB I have a UIView as a subview, with connections to an <code>IBOutlet</code> on <code>MyViewController</code> class. I want to load the UIView subview from a NIB also. The subView also has a class associated with it. But the subview is not showing. Here is what I do  </p>
  
  <p>on MyViewController.h</p>
  
  <pre><code>@interface MyViewController : UIViewController {
      IBOutlet SubView *subView;     // this outlet is connected to an empty UIView on IB
  }
  @end
  </code></pre>
  
  <p>on MyViewController.m</p>
  
  <pre><code>-(id)init {
      if ((self = [super init])) {
          // load the main view 
          [[NSBundle mainBundle] loadNibNamed:@"myViewController" owner:self options:nil];
          // load the sub view from another NIB
          self.subView = [[[NSBundle mainBundle] loadNibNamed:@"subView" owner:self options:nil] objectAtIndex:0];
      }
  }
  </code></pre>
  
  <p>the SubView.h is defined as: </p>
  
  <pre><code>@interface SubView : UIView {
  }
  @end
  </code></pre>
  
  <p>What am I doing wrong?</p>