Help me Understand Positioning of Elements

I need some help understanding swift/xcode positioning of elements. I've done several tutorials and built some apps but I really don't get it. I know my way around the xcode IDE, for instance the pin tool for creating constraints.

If I have 3 buttons on the left side of a view, one 15% from the top, one in the middle, and one 15% from the bottom. For the sake of discussion, I'll use my top edge on the top one and bottom edge on the bottom button.

How do I maintain this across different phone sizes? In this case portrait only. I can pin the top and bottom and then pin the center button to it's upper and lower neighbors but that fixes them in place. And they would be different percentages of distance apart on different size phones.

What am I missing?

Thank you!
lateapexAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pegasysIT, System Admin, Development and Stack DevelopmentCommented:
Usually if you lay it out visually and set the constraints as per UI Builder then it'll be fine.

You would set this mainly by priorities... e.g. click on the constraint (or highlight it in the Document Outline)...

From there, set the constraint priority,. The lower the priority, the more likely it is to give way to other constraints with high prio's...

The higher the priority, the more likely it is to override or overload another constraint with a priority lower.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
iOS

From novice to tech pro — start learning today.