//平移
//基于初始状态的平移
// self.tempView.transform=CGAffineTransformMake(1, 0, 0, 1, 50, 50);
// self.tempView.transform=CGAffineTransformMakeTranslation(50, 50);
//基于视图已有状态的平移
// self.tempView.transform=CGAffineTransformTranslate(self.tempView.transform, 10, 10);
//缩放
//基于初始状态缩放
// self.tempView.transform=CGAffineTransformMake(2, 0, 0, 2, 0, 0);
// self.tempView.transform=CGAffineTransformMakeScale(2, 3);
//基于视图已有状态的缩放
// self.tempView.transform=CGAffineTransformScale(self.tempView.transform, 0.9, 1.5);
//旋转
//基于初始状态的旋转
// self.tempView.transform=CGAffineTransformMake(cos(M_PI_4), sin(M_PI_4), -sin(M_PI_4), cos(M_PI_4), 0, 0);
// self.tempView.transform=CGAffineTransformMakeRotation(M_PI_4);
// [NSTimer scheduledTimerWithTimeInterval:0.00001 target:self selector:@selector(test) userInfo:nil repeats:YES];
//基于视图已有状态
// self.tempView.transform=CGAffineTransformRotate(self.tempView.transform, M_PI_4/30);
[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(rotain) userInfo:nil repeats:YES];