开发者

UIColor colorWithPatternImage

开发者 https://www.devze.com 2023-04-08 14:10 出处:网络
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.

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

精彩评论

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