【发布时间】:2011-12-29 13:56:44
【问题描述】:
这基本上是一个简单的问题,我无法解决......
-
1234563一些度数。
这个动画效果很好。但是,如果我再次从那个状态进行旋转和移动,我希望对象在旋转后使用 STEP 1 中的新框架和新属性,并再次旋转新角度。
到目前为止,当我再次尝试旋转时,它会使用其标准状态和帧大小(在初始化期间)并对其执行旋转...
And by this I mean... If I have a square of frame (100, 200, 10, 10), and I rotate it by 45 degrees, the shape is now a different square, with different frame size and end points compared to the original square, and I implement a new rotation by (say) 152 degrees on it and it needs to perform a rotation on the newer square... But it turns out that it uses the same frame size as the previous one (x,y, 10, 10).
如何继续旋转/移动具有更新位置和状态的对象??
注意: (如果需要查看动画代码)
这是我的动画代码,涉及简单的旋转和移动! http://pastebin.com/cR8zrKRq
【问题讨论】:
标签: iphone objective-c cocoa-touch core-animation core-graphics