CATransform3D transform = CATransform3DIdentity; [self.BottomImage.layer setTransform:CATransform3DRotate(transform, -M_PI_2, 0, 0, 1)];