StoryBoard Different screen sizes iOS

182 views Asked by At

I'm trying to make an app. I prepared the ui with sketch app.And I export the ui , it is like this: enter image description here

I add some text field and button to View

enter image description here

But when I use Auto Layout and constraints buttons and text fields are going to another place.I need the use them like in the picture.What should I do ? Do you have any suggestion ?

Thank You

1

There are 1 answers

2
matt On

Notice the red arrow at the top right of your second screen shot. That is telling you that your constraints are faulty. Until you fix them, you will not see your interface widgets in the desired locations.

In general, as long as you see a red or yellow arrow in that spot, you need to work on your layout some more. Do not attempt to run a project when Interface Builder shows you that red or yellow arrow; your results will be disappointing, to say the least.