When using Auto Layout, is there a way to make sure that the subview is located one-third of the device?
swift autolayout xcode
And choose EqualHeights
Set the EqualHeightsConstraints setting to 1:3 as shown below
You can add the subview you want to be located at 1/3 point and set the vertical margin of the subview you added above to zero.
Hello.
The article below shows how to position according to the relative proportions.
© 2024 OneMinuteCode. All rights reserved.