开发者

clipping to bounds with UIViewContentModeScaleAspectFill

开发者 https://www.devze.com 2023-01-18 17:37 出处:网络
is there any way of controlling where开发者_运维知识库 UIViewContentModeScaleAspectFill clips an image? In my case, images are always clipped around the center of the image. Is it possible to make it

is there any way of controlling where开发者_运维知识库 UIViewContentModeScaleAspectFill clips an image? In my case, images are always clipped around the center of the image. Is it possible to make it clip around the top?

Thanks!

Antonio


The current implementation of UIViewContentModeScaleAspectFill is indeed to center the image as you pointed out, to my knowledge there's no way of altering this behavior.

0

精彩评论

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

关注公众号