0
为的UIColor类状态的方法colorWithPatternImage的文档:的UIColor colorWithPatternImage
在拉丝,在图案颜色的图像平铺根据需要以覆盖给定区域。
这意味着如果对象的框架大于与colorWithPatternImage方法一起使用的图像的大小,则图像平铺以适合。不过,我希望它能够被拉伸。这可能吗?如何做到这一点?
为的UIColor类状态的方法colorWithPatternImage的文档:的UIColor colorWithPatternImage
在拉丝,在图案颜色的图像平铺根据需要以覆盖给定区域。
这意味着如果对象的框架大于与colorWithPatternImage方法一起使用的图像的大小,则图像平铺以适合。不过,我希望它能够被拉伸。这可能吗?如何做到这一点?
使用的UIColor与colorWithPatternImage不会让你的UIImage拉伸 如果你想使用stretchableImageWithLeftCapWidth:topCapHeight:尝试UIViewImage