可以在这里看到上述应用程序:http://pushpoppress.com/ourchoice/ .我感兴趣的是他们可以在底部自由捏缩略图以放大到全 View 的部分。复制这种效果会很有趣。
有什么想法吗?
最佳答案
旋转图片:
导入数学.h
在touchesbegan中:找到firsttouch、secondtouch等
然后: float startdirection = tanh((firsttouch.y-secondtouch.y)/(firsttouch.x-secondtouch.x));
在touchesmoved中: 再次找到 firsttouch、secondtouch,然后:
float newdirection = tanh((firsttouch.y-secondtouch.y)/(firsttouch.x-secondtouch.x));
image.transform = CGAffineTransformMakeRotation(newdirection-startdirection);
关于iphone - "Our Choice"应用程序如何缩放以查看内容部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6566626/