[英]how can I find zooming factor of UIImageView inside UIScrollView
What is the most easiest way to find the zooming factor when I zoom in/out the UIImageView inside the scroll view? 当我在滚动视图中放大/缩小UIImageView时,找到缩放因子的最简单方法是什么? I know maybe I can do some calculation on the scrollViewDidZoom delegate, but is there an easier way? 我知道也许我可以在scrollViewDidZoom委托上做一些计算,但有更简单的方法吗? I know there's also - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale
, but this is only after the zoom ends, not while it's at it 我知道还有- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale
,但这只是在缩放结束后,而不是在它结束时
UIScrollView
有一个zoomScale
属性 ,听起来像你想要的:“一个浮点值,指定应用于滚动视图内容的当前比例因子。”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.