最佳答案
拉伸(stretch)属性非常简单,正如 Karol Kozub 在 this article 中所说的那样:
The fraction of the original image left without stretching on the left is specified by X
The fraction of the original image that gets stretched in the x-axis is specified by Width
The fraction of the original image left without stretching on the right is equal to 1 – X – Width
If we use 0 for Width the stretched area will interpolate between the last pixel of the left part and the first pixel of the right part
The y-axis works analogously
关于ios - UIImageView 的拉伸(stretch)属性有什么用。我如何使用此属性。?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37413585/