title: Setting up views beyond the xib file's view to fit into a scroll view + Different xib for orientations - iOs
body: <p>I have a UIScrollView which contains a view controller which contains a couple of contorllers - text fields, buttons, an image, etc...
  When it is shown on portrait mode, I want it to act as if there is no scroll view ( its still there, of course, but disabled scrolling and bouncing and etc, content size is application frame's size ), and the custom view is just displayed normally, but when switching to landscape I want to make the scroll view available to use in order to avoid tight user interface.</p>
  
  <p>I want to use a specific xib file for portrait/landscape modes and not place the objects differently using code, because of localization reasons
  I encountered 3 problems doing this:</p>
  
  <p>1)I cant find a way to load and apply to the controller a different xib when rotating ( I'd like it to be a smooth transition as well, but not as important right now )</p>
  
  <p>2)I can't find a way to set up something beyond the application frame's in a xib file ( I dont have the buttons and etc directly in a scroll view, but inside a custom view which is inside a scroll view ), So I cant place anything on the invisible part of the scroll view ( the part that needs to be scrolled into in order to be seen )</p>
  
  <p>3)I cant find a way to specify a scroll view's content size via a xib file, which is needed in order for the interface to be as flexible as possible for localization.</p>
  
  <p>Do you have any ideas on how to implement/solve these needs?</p>
  
  <p>Thanks in advance!</p>