Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 UIImageView 中的简单 UIImage 创建自定义背景页面。
我想要做的是能够以照片应用程序处理图像的方式来适应我的图像。
在这里,我想避免尽可能多的空白空间,而不会影响用户对图像的感知。
感谢您的建议
如果要以正确的纵横比查看整个图像,则必须使用 aspectFit。
你假设它的 aspectFill 是纵向的。但这仅适用于以纵向查看的纵向图像(或以横向查看的横向图像)。