How to differentiate if user zoomed in or zoomed out on view?
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.
精彩评论