문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top