Autolayout Greedy Fill question
Autolayout Greedy Fill question
- Subject: Autolayout Greedy Fill question
- From: Luther Baker <email@hidden>
- Date: Wed, 04 Dec 2013 17:27:11 -0600
Given the following controls:
lastName = text field
gender = segmented control
picture = image view
and given the following layout string:
@"V:|-[lastName]-[gender]-[picture]-|";
I'd like to make sure that the lastName and gender controls are sized
tightly and allows the "picture" control fill all remaining vertical space.
Obviously, I don't want to include explicit size values.
In other words, I want sizing similar to old school [lastName sizeToFit]
and [gender sizeToFit] ... and then simply give the rest of the space to
'picture'.
This question goes for the H axis as well. I have a series of elements on a
line and I want to make sure that all of them are sized tightly save for
one which should greedily take up the rest of the space.
Please note that for the most part, these are built in controls - IE: I'm
not overriding or implementing intrinsic size details.
-Luther
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden