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.
是否可以使用 ImageEdgeInsets 将图像限制为正方形?我在按钮内有一个 UI 图像,我想在按钮内将其设为正方形。ImageEdgeInsets 是否提供保持纵横比的能力?谢谢!
为了保持纵横比,你应该看看这里(它不使用 ImageEdgeInsets)