开发者

Non tiled and non stretchable background image for UIView

开发者 https://www.devze.com 2023-03-10 06:09 出处:网络
Is there a way to create a background image for a UIView that is not stretchable and not tiled?I want the origin and size of the image to be always the same regardless of th开发者_高级运维e UIView fra

Is there a way to create a background image for a UIView that is not stretchable and not tiled? I want the origin and size of the image to be always the same regardless of th开发者_高级运维e UIView frame size.

Thanks.


You need to change the contentMode property of your image view.

0

精彩评论

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