转自:http://blog.csdn.net/trandy/article/details/6626281
- -(UIImageView *) makeRotation:(UIImageView *)image speedX:(float)X speedY:(float)Y  
 
- {  
 
-       
 
-       
 
-     if (Y<0) {  
 
-         image.transform = CGAffineTransformMakeRotation(atan(X/(-Y)));  
 
-     }else if(Y>0){  
 
-         image.transform = CGAffineTransformMakeRotation(atanf(X/(-Y))-PI);   
 
-     }  
 
-     return image;  
 
- } 
 
UIImageView旋转任意角度---实现方法
原文:http://www.cnblogs.com/allanliu/p/4191996.html