当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - Zoom image where it touched

问题描述:

I want to zoom that area (50x50 area around it) of image where user touched.

Please note that i do not want to zoom full image.

Is there any way to do this ?

网友答案:

You can place your image inside a UISCrollView and catch touch up inside event. Then, you can get the coordinates of the touch, and make your UIScrollView zoom on this area.

Edit : As I said in comment, see the documentation and especially the method - (void)zoomToRect:(CGRect)rect animated:(BOOL)animated

分享给朋友:
您可能感兴趣的文章:
随机阅读: