开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜