Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pin button to bottom of view Storyboard iOS

I have a button that needs to "stick" to the bottom of the main view on both 3.5 inch and 4" iPhones. Currently, I can move it right to the bottom of the storyboard on a 3.5" view but then on a 4 inch view, it moves up.

How do I stick the button to the bottom of the view on both screen sizes?

like image 794
nathan Avatar asked Dec 20 '22 17:12

nathan


1 Answers

Select your button which you want to pin to bottom. Click on add new constraints and select bottom constraints then click on add.

Add New Constraints

like image 105
bpolat Avatar answered Jan 14 '23 08:01

bpolat