Core Animation總結(一)圖層變換(平面 立體)性能
#Core Animationget
CALayer.affineTransform == UIView.transform 是一個 CGAffineTransform 類型,用於在二維空間作旋轉,縮放和平移io
// CGAffineTransform CGAffineTransform transform = CGAffineTransformMakeRotation(M_PI_4); // view self.view.transform = transform // layer self.view.layer.affineTransform = transform;
CALayer.transform 是 CATransform3D 類型form
// CATransform3D CATransform3D transform = CATransform3DMakeRotation(M_PI_4, 0, 1, 0); // transform self.view.layer.transform = transform;