2011-06-08 83 views
1

我对iphone中的动画非常新颖。首先,我想实施地球或地球的旋转。我怎么能实现它在iphone 在此先感谢动画在iphone中使用目标c

+0

可以添加你想要什么,更详细旋转,地球是好的,但它会是一个2D图像,或者它应该与OpenGL 3D? – 2011-06-08 09:55:11

+0

@ Nick Weaver:2D图像会很好 – sujay 2011-06-08 10:00:01

回答

0

对于二维动画,你需要一些帧(理想情况下360),然后通过在UIImageView中的帧。您可以通过设置animationImages属性此example

0

你可以使用这个......这个不旋转,而是从一个位置移动图像到另一个


CGRect tempFrame=theView.frame; 

tempFrame.origin.x=tempFrame.origin.x+50; 

[UIView beginAnimations:@"" context:nil]; 

[UIView setAnimationDuration:2]; 

theView.frame=tempFrame; 

[UIView commitAnimations];