title: changing layout for two orientations for a view from interface builder
body: <p>is it possible to set the layout for a view for landscape and portrait orientations from interface builder (XCode 4.1)? I'm asking this question because when I set the layout for portrait, and then change view orientation to landscape and re-set the layout again according to landscape, it will keep with the last layout for landscape orientation !! that means, when I switch back to portrait orientation the layout does not change.</p>
  
  <p>any solution to this problem from IB ?</p>
  
  <p>EDIT:</p>
  
  <p>I understood the idea now, so IB will give you limited flexibility for playing with my view in both orientations, it's limited because I can't produce a fully new layout for my view for each orientation from IB, for example, If I have six <code>UIButtons</code> (with their shadow image views) placed on a portrait orientation as in the following screenshot: <img src="https://i.stack.imgur.com/vFQlU.png" alt="enter image description here"></p>
  
  <p>and giving each button and the shadow image view all resizing masks as in this screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/SJAPY.png" alt="enter image description here"></p>
  
  <p>the result in landscape will be messed up as in this screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/RDRE4.png" alt="enter image description here"></p>
  
  <p>so I have two questions:</p>
  
  <p>1) is it possible to set auto-resizing for these objects (from IB) so that the landscape view will match the portrait one ? if yes how ?</p>
  
  <p>2) can I design (from IB) a completely different layout for landscape (without affecting the original layout in portrait) as in the following screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/vPYE7.png" alt="enter image description here"></p>
  
  <p>If i can't, I think the solution would be to make a new view from code, is that true ?</p>
  
  <p>thank you for your help.</p>