I\'m trying to make a bunch of buttons behave somewhat like float:left in CSS. So whenever the view changes size, on orientation change for example, the buttons should adjust so
If you had to implement this manually (by overriding layoutSubviews), I think the algorithm would be something like this: