我的代碼是這樣的://ViewController.m//核心動(dòng)畫(huà)#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但是這樣做旋轉(zhuǎn)了一次就不在旋轉(zhuǎn)了。請(qǐng)問(wèn)如何實(shí)現(xiàn)不停的旋轉(zhuǎn)呢?(按照Y軸)
如何實(shí)現(xiàn)圖片的3D旋轉(zhuǎn),而且是不停旋轉(zhuǎn)?
牛魔王的故事
2019-04-19 16:29:44