title: Make the the subviews behave as float works in html
body: <p>I have a grid of views inside a main view. I want the views to float left (and up) and fill the extra space when I change orientation of the iPad. <img src="https://i.stack.imgur.com/MsmSh.jpg" alt="UI, portraid mode"></p>
  
  <p><img src="https://i.stack.imgur.com/BmHR9.jpg" alt="Landscape mode, how i want it to look"></p>
  
  <p>How can i achieve this?<br>
  Im pretty new to core animation and cocoa-touch as such. So any pointers on where to start will also be very helpful.</p>
  
  <p>PS: For some reason I can't seem to upload the screenshots here.</p>