开发者

UIColor colorWithPatternImage

The documentation for the method colorWithPatternImage of the UIColor class states:

During drawing, the image i开发者_如何学Cn the pattern color is tiled as necessary to cover the given area.

This means that if the object's frame is larger than the size of my image used with the method colorWithPatternImage, then the image is tiled to fit. However, I would like for it to be stretched instead. Is this possible? How would one accomplish this?


Using UIColor with colorWithPatternImage will not let your UIImage stretched If you want to use stretchableImageWithLeftCapWidth:topCapHeight: try UIViewImage

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜