self.tempView.transform = CGAffineTransformIdentity;
// CGAffineTransform 方法時在按鈕的上次變形的累加
self.tempView.transform = CGAffineTransformScale(self.tempView.transform, 0.8, 0.8);
self.tempView.transform = CGAffineTransformRotate(self.tempView.transform, M_PI_4);
self.tempView.transform = CGAffineTransformTranslate(self.tempView.transform, dx, dy);
// transform:形變屬性瘾杭,能完成的功能:平移、縮放掺喻、旋轉 CGAffineTransformMake 方法則是相對于初始位置變化
// 縮放
self.tempView.transform = CGAffineTransformMakeScale(0.5, 0.5);
// 平移
self.tempView.transform = CGAffineTransformMakeTranslation(-100, 100);
// 旋轉
self.tempView.transform = CGAffineTransformMakeRotation(-M_PI_4);
CGAffineTransform translation = CGAffineTransformMakeTranslation(-100, 100);
CGAffineTransform scaleTranslation = CGAffineTransformScale(translation, 0.5, 0.5);
CGAffineTransform rotateScaleTranslation = CGAffineTransformRotate(scaleTranslation, M_PI_2);
self.tempView.transform = rotateScaleTranslation;