title: How to resize sub views in Navigation Controller in Interface Builder
body: <p>I'm building an iPhone application and in one of my problems, I am trying to resize sub views. First, I have a Table View that when each data is tapped, it opens a new view. But the problem is that images and text in that opened view (which contains a Navigation Controller) is not aligned properly. They are all misplaced and my guesses is that on that view, it's only showing 3/4 of the top, not the whole view (which most of my images at the bottom are only showing half of the image). My goal is to fit every image and text to fit into my view that contains a Navigation Controller at the top of my view. So after researching, I can change the size and position in Interface Builder, but for some reason they are blank which I can't edit:</p>
  
  <p><img src="https://i.stack.imgur.com/8YV0G.png" alt="enter image description here"></p>
  
  <p>In addition, I tried this code in my viewDidLoad:</p>
  
  <pre><code>// DetailViewController.m
  - (void)viewDidLoad {
      [super viewDidLoad];
      self.view.autoresizesSubviews = YES;
      self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  }
  </code></pre>
  
  <p>So far none of these are even resizing my view to fit with my navigation controller, so I hope someone has a better idea how to resize and fit my view with Navigation Controller, thanks</p>