/RotateTheView

拖拽旋转视图

Primary LanguageObjective-C

RotateTheView

拖拽旋转视图

视图一点固定, 拖拽另一点, 视图随着拖拽旋转

主要用到 拖拽手势 UIPanGestureRecognizer 锚点属性 anchorPoint 反正切函数 atan((translation.x)/EVE_H);

模拟器上划几下就无响应, 真机好使, 不知道什么鬼 代码有点low 凑合看吧, 互相学习哈