Consider 3 views header
, body
and footer
with the following restrictions:
header
must be shown on top and has fixed heightfooter
must be shown at the bottom and has fixed heightbody
must fill the space between header and footerIs it possible to layout these views with autoresizing masks? How?
If not, is it possible to layout these views with auto layouts? How?
If it works the same as in UIKit :
UIViewAutoresizingFlexibleWidth
. In IB, the 4 margins are switched on (lit), the horizontal arrow (width) is on (lit), but the vertical arrow (height) is off (unlit).UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
. In IB, the 4 margins are switched on (lit), and both arrows are on too.