开发者

Imitating fullscreen gesture of MPMoviePlayerController on UIImageView

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜