title: iOS - PageView controller with UITableView resize error
body: <p>I have a controller with two<code>UIViews</code> the first one have 200 of height(constant across all iPhones) and the second one<code>UIViews</code> contain a<code>PageViewController</code> and should get the rest of the height and it does.</p>
  
  <p>The problems come when the<code>UITableView</code> get the data, It resize the<code>UIView</code>, with the resize, the<code>UIView</code> now have more height than it should have ( because tableView resized it) and I am not able to scroll to the last object.</p>
  
  <p>Example: Height screen = 600</p>
  
  <p>First  <code>UIView = 200;</code></p>
  
  <p>Second <code>UIView = 400;</code></p>
  
  <p>Now the UITableView get the data and loads it and resize </p>
  
  <p>First <code>UIView = 200;</code></p>
  
  <p>Second <code>UIView = 600;</code></p>
  
  <p>but the screen have only 600.</p>
  
  <p>I tryed lots of options, try to resize the table with the original width and height of the second UIview before resize on <code>viewDidLayoutSubviews</code></p>
  
  <pre><code>- (void)viewDidLayoutSubviews{
  [super viewDidLayoutSubviews];
  
  float a = self.tabla.frame.size.height;
  float a2 = self.tabla.superview.frame.size.height;
  //self.tabla.superview.autoresizesSubviews = false;
  //self.tabla.frame = CGRectMake(self.tabla.frame.origin.x,self.tabla.frame.origin.y,self.tablaSizeWidth,self.tablaSizeHeight);
  }
  </code></pre>
  
  <p>I also tryed to desactivate the AutoLayout of the<code>TableView</code> and it worked! but if I desactivate it, it desactivate for all the whole storyboard and my second UIView cant get the rest of the height (Seriously apple?!)</p>
  
  <p>Constraints of UIView containing the page controller</p>
  
  <p><img src="https://i.stack.imgur.com/ssQuu.jpg" alt="Constraints"></p>
  
  <p>View of all the constraints and the layout</p>
  
  <p>Note: Main view background is setted to green and PageAdapter background is setted to black.</p>
  
  <p><img src="https://i.stack.imgur.com/GLeOY.jpg" alt="enter image description here"></p>
  
  <p>How I can make it?</p>