我的代码是这样的://ViewController.m//核心动画#import"ViewController.h"@interfaceViewController()@property(weak,nonatomic)IBOutletUIImageView*imageView;@end@implementationViewController-(void)viewDidLoad{[superviewDidLoad];}-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{ [UIViewanimateWithDuration:3animations:^{self.imageView.layer.transform=CATransform3DMakeRotation(M_PI,0,1,1);}];}-(void)didReceiveMemoryWarning{[superdidReceiveMemoryWarning];}@end但是这样做旋转了一次就不在旋转了。请问如何实现不停的旋转呢?(按照Y轴)
慕哥6287543
尚方宝剑之说
相关分类