clipping to bounds with UIViewContentModeScaleAspectFill
-
26-09-2019 - |
문제
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.
제휴하지 않습니다 StackOverflow