Auto layout / constraints

Hello guys! i'm a new developer and i have a problem with my constraints i'm trying to make a tic tac toe game and i have had all my constraints. everything looks good when i'm watching the preview with the views from different devices screen but when build and run my program everything looks off and not great. can you help me out with this please? thank you in advance. here are some screenshot.


Replies

We/re not allowed to share screenshots and images here, so you'll either have to use your words or upload the image to a server and add the link to your comment and then wait for that link to be moderated so others can see it and offer an opinion on what the issues might or might not be and be sure to note the version Xcode you are using too just in case that is a factor in trying to determine what feedback may apply.

You can make a test to see if your constraints are correctly defined.


First, save a copy of your project and work on this copy, because it can make modifications that cannot be undoed.

In the copy of the project, open the storyboard in IB.

Select the view which has problems

In the Editor menu, if the option Resolve AutoLayout -> All Views -> Update frames is active, select it.

See if some items move. If so, you are missing some constraints or some constraints are wrong.