开发者

Imitating fullscreen gesture of MPMoviePlayerController on UIImageView

开发者 https://www.devze.com 2023-01-17 04:26 出处:网络
When the user makes a zoom g开发者_如何学运维esture, I need the image to animate to fullscreen, without bouncing around or having to gesture more than once. Movies played using MPMoviePlayerController

When the user makes a zoom g开发者_如何学运维esture, I need the image to animate to fullscreen, without bouncing around or having to gesture more than once. Movies played using MPMoviePlayerController have exactly this behaviour.

I note some people have implemented something similar using scrollview/webview, but that doesn't give the same effect, and often requires several gestures to fully zoom an image.


Capture the pinch using UIPinchGestureRecognizer which has a scale getter that tells you how much the user pinched in/out.

0

精彩评论

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