What is the iOS equivalent to Android layout weights?

android, ios

Solution

Use StackView (similar to LinearLayout in Android)

Select Distribution = Fill Equality (similar to weight)

Example:

Problem

Coming from Android development I'm trying to imitate some of the layouts that I've made in past applications, but now on the iPhone and iPad. Something that I use quite often in Android is layout weight. I've done a ton of searching, reading books, blogs, and I thought something like this would be possible in iOS 6, but I haven't been able to find anything. I've also tried watching a ton of tutorials on auto layout in iOS, but I really haven't found anything that accomplishes my task. This is driving me nuts. So... is there an iOS equivalent to Android layout weights?

Original source

Related problems