Reputation: 769
I have read lot of documents and tutorials about autolayout and constraints but I don't know what I'm doing wrong but in my case the examples doesn't work...I know that this is a repeated question but I don't know what I can do...
I'm trying to fix a button to my bottom screen. Bottom with 0 distance. In 4 hinches screen all is ok but when I'm changig to 3,5" the button dissapear. This is what I'm doing:
Thanks a lot!
Upvotes: 2
Views: 2365
Reputation: 528
You can complete the following steps to achieve that:
Add bottom constraint, width and height:
Add horizontal centre constraint:
Now you can test on your storyboard by clicking the Apply from factor button:
Upvotes: 6
Reputation: 4326
Select the button, and select "Update Frames"
Suggestion: you should add constraints to the button for left, right and height.
Upvotes: 2