I wanted the UI to be the same size and position on all screens. I successfully made it the same size, but its position changes when the device’s screen resolution changes. I’ve used UIAspectRatioConstraint.
As you can see, the positions are very different.
Change the SizeConstraint to RelativeYY
SizeConstraint
RelativeYY
And you might have to play around with the sizing to get what you want
Also, it’s best to change the AnchorPoint
Top left: 0, 0 Top: 0.5, 0 Top right: 1, 0
Top left: 0, 0
Top: 0.5, 0
Top right: 1, 0
Bottom left: 0, 1 Bottom: 0.5, 1 Bottom right: 1, 1
Bottom left: 0, 1
Bottom: 0.5, 1
Bottom right: 1, 1
Left: 0, 0.5 Right: 1, 0.5
Left: 0, 0.5
Right: 1, 0.5
Center: 0.5, 0.5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.