I have a launch screen with a image at bottom right corner. Constraints are as follows:
UIImageView
must be one fourth of superview. and also mode for imageview
is set to Aspect Fit
.
What should be the height constraint, so that the image
in the UIImageView
is bottom aligned for all devices and all orientations.
In the screenshots, the image
is not bottom aligned, although the imageview
is.
因此,解决我的问题的方法是Aspect Ratio
约束,并考虑所有约束。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.