0
votes

My view controller content consists of 3 views. I use interface builder on Xcode4. Something like that on portrait mode: enter image description here
(source: gyazo.com)

I need to autoresize this content on orientation change to landscape: view 2 have constant width, 1 and 3 views must increase width for landscape mode to have close borders to view 2.

Is it possible to implement this behavior via interface builder autoresizing masks?

1

1 Answers

0
votes

To do this you can use one more helper UIView (let say N4). Put views 2 and 3 inside view N4. Align view 1 with view 4 with autoresize mask as needed, after that do same for view 2 and view 3 inside N4.