Xcode UI Elements Constraint Structure

I am new to Mac OS and Xcode, I have a problem with the layout of the user interface elements, the elements on the emulator look different from it, when I put it on display, check the photo below, please, is it something about the car market?

layout problem

+4
source share
2 answers

You need to use the functionality of constraints and auto layout iOS 6.

Please check this tutorial for a good start.

+2
source

Apple provides a brief introduction to the limitations in the "Second iOS App " tutorial

In short, when creating elements, some constraints are created automatically and automatically place your objects in space. Others are not automatically created, and you create them by selecting an element and using the pin size or pin constraint inspector to prevent collisions and allow rotation to automatically change elements.

+1
source

Source: https://habr.com/ru/post/1445198/


All Articles