I would like to make a button close to the bottom of the screen. If for ex. user’s device is iPhone 5S, 10 points but for iPhone 11, 20 point etc. I couldn’t find how to make it like
constraint = height / constant
so higher the device higher the button will be. How can I achieve this programmatically or from Xcode UI?
2
Answers
Maybe you can get the height of your devices’ windows and multiply it for the ratio?
In your
viewDidLoad
, get the reference for the view to setup as so: