_plank是通过接口构建器初始化的UIImageView。
我使用的方法如下:
[UIView animateWithDuration:1 delay:0.0 options:UIViewAnimationOptionCurveLinear
animations:^{
_plank.layer.anchorPoint = CGPointMake(0.5, 0.5);
_plank.transform = CGAffineTransformRotate(_plank.transform, 1);
}
completion:^(BOOL finished) {
}];最终发生的是UIImageView在屏幕上随机移动,但以所需的方式旋转。我该怎么做才能阻止它在屏幕上移动?
发布于 2013-09-18 08:39:35
我不得不在上班时关掉自动收费系统。@David R nnqvist的学分
https://stackoverflow.com/questions/18867008
复制相似问题