title: Setting a subview in UIViewController
body: <p>EDIT: This question is due to a big lack of understanding how Interface Builder and properties in classes works. </p>
  
  <p>Why can't i just set <code>self.mySubView = anoterhView;</code> like one can set <code>self.view = anotherView;</code> ?</p>
  
  <pre><code>## .h
  @interface TestController : UIViewController {
      IBOutlet UIView *mySubView;
  }
  
  @property (nonatomic, retain) IBOutlet UIView *mySubView;
  
  ##.m
  
  @implements TestController
  
  @synthesize mySubView;
  
  - (void)viewDidLoad { 
  
      AnotherController *anotherController = [[AnotherController alloc] initWithNibName:nil bundle:nil];
      anotherView = anotherController.view;
  
      // if i do
      self.view = anotherView;
      // result: replaces whole view with anotherView
  
      // if i instead do
      self.mySubView = anotherView;
      // result: no change at all
  
      // or if i instead do:
      [self.mySubView addSubview:anotherView];
      // result: mySubView is now displaying anotherView
  
  }
  </code></pre>
  
  <p>NOTE: I'm using interfacebuilder. I'm sure everything is hooked up allright because self.view, and self.mySubView addSubview: is working allright..</p>