title: ios Handling of parentViews if orientation changes
body: <p>Maybe a basic problem, it's my first app dealing with different orientations on iPad.</p>
  
  <p>UIView1 
    --> UIButton
         --> Presents UIView2</p>
  
  <p>In UIView1 and UIView2 i set the frame and Size of containing Views depending on orientation in </p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  </code></pre>
  
  <p>This is ok. But if View2 is in focus, the orientation changes and i close View2, View1 did not respond to orientation change. The View itself is in correct orientation, but the calculation of frame and size of in UIView1 contained elements is not executed. </p>
  
  <p>What is the "correct" way to do this? Do i have to call a delegate method in View2 to set the new positions in View1 (hopefully resisting in background if it was not released because of memory)?</p>
  
  <p>MadMaxApp</p>