开发者

How to differentiate if user zoomed in or zoomed out on view?

开发者 https://www.devze.com 2023-04-04 06:31 出处:网络
How 开发者_高级运维to differentiate if user zoomed in or zoomed out on a view? Is there any direct property/method available to detect the same?

How 开发者_高级运维to differentiate if user zoomed in or zoomed out on a view?

Is there any direct property/method available to detect the same?

Thanks


If you are using UIPinchGestureRecognizer then you can do that using gestureRecognizer.velocity property.

Value of velocity is negative when current scale is smaller then previous and positive when it scale increases.

0

精彩评论

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