title: auto-resize a XIB file to be as the screen size
body: <p>I have a View Controller which has a scrollView embedded inside. In this Scroll view I have adding 4 views which are XIB file views. The XIB files size are 'Inferred' although appear to be iphone5 sizing. When loaded they are not auto-resizing to be the size of the screen, they are staying at iphone5 size.</p>
  
  <p>How can I make the XIB file be the same size as the screen it is loading into?</p>
  
  <p>EDIT:</p>
  
  <p>I have also tried changing the the size of the nib files through the code like this:</p>
  
  <pre><code> // 1) Create the three views used in the swipe container view
          let AVc :AViewController =  AViewController(nibName: "AViewController", bundle: nil);
          let BVc :BViewController =  BViewController(nibName: "BViewController", bundle: nil);
          let CVc :CViewController =  CViewController(nibName: "CViewController", bundle: nil); 
          let DVc :DViewController =  DViewController(nibName: "DViewController", bundle: nil);
  
          AVc.view.frame = CGRectMake(0 , 0, self.view.frame.width, self.view.frame.height)
          BVc.view.frame = CGRectMake(0 , 0, self.view.frame.width, self.view.frame.height)
          CVc.view.frame = CGRectMake(0 , 0, self.view.frame.width, self.view.frame.height)
          DVc.view.frame = CGRectMake(0 , 0, self.view.frame.width, self.view.frame.height)
  
          // 2) Add in each view to the container view hierarchy
          //    Add them in opposite order since the view hieracrhy is a stack
  
          self.addChildViewController(DVc);
          self.scrollView!.addSubview(DVc.view);
          DVc.didMoveToParentViewController(self);
  
          self.addChildViewController(CVc);
          self.scrollView!.addSubview(CVc.view);
          CVc.didMoveToParentViewController(self);
  
          self.addChildViewController(BVc);
          self.scrollView!.addSubview(BVc.view);
          BVc.didMoveToParentViewController(self);
  
          self.addChildViewController(AVc);
          self.scrollView!.addSubview(AVc.view);
          AVc.didMoveToParentViewController(self);
  </code></pre>
  
  <p>This still has no affect and it loads the wrong size.</p>