我现在正在执行app
,因为iOS devices
所以在objective C
,我在问如何在旋转后保持原位置UIImageView
?保留原点位置UIImageView
例如,我用我的UIImageView
这样的:
CGAffineTransform initialPosition = CGAffineTransformMakeRotation(0);
CGAffineTransform finalPosition = CGAffineTransformMakeRotation(M_PI/2);
[UIView beginAnimations: @"Rotate animation" context: NULL];
MySuperUIImageView.transform = initialPosition;
[UIView setAnimationDuration:1.0];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView setAnimationRepeatCount:1];
[UIView setAnimationDelegate:self];
MySuperUIImageView.transform = finalPosition;
[UIView commitAnimations];
但之后,我做到了desappear一时间,使用:
MySuperUIImageView.alpha = 0.0f;
当我重新使用它,我希望它在第一个原始位置,没有旋转。这很容易吗?
在此先感谢!
你是对的! – user2057209