Objective c uicolorWithPatternImage
UIColor类的colorWithPatternImage方法的文档说明: 在绘制过程中,图案颜色的图像根据需要平铺以覆盖给定区域。Objective c uicolorWithPatternImage,objective-c,Objective C,UIColor类的colorWithPatternImage方法的文档说明: 在绘制过程中,图案颜色的图像根据需要平铺以覆盖给定区域。 这意味着,如果对象的帧大于使用colorWithPatternImage方法的“我的图像”的大小,则图像将平铺以适合。不过,我希望它能被拉伸。这可能吗?如何做到这一点?使用UIColor withcolorWithPatternImage不会让UIImage拉伸 如果要使用StretcableImagewithLeftCapWidth:topCapHeight:
这意味着,如果对象的帧大于使用colorWithPatternImage方法的“我的图像”的大小,则图像将平铺以适合。不过,我希望它能被拉伸。这可能吗?如何做到这一点?使用UIColor withcolorWithPatternImage不会让UIImage拉伸 如果要使用StretcableImagewithLeftCapWidth:topCapHeight:请尝试UIViewImage