CGAffineTransform _trans = sticker.transform;
CGFloat rotate = acosf(_trans.a);
// 旋转180度后,需要处理弧度的变化
if (_trans.b < 0) {
rotate = M_PI -rotate;
}
// 将弧度转换为角度
CGFloat degree = rotate/M_PI * 180;本文出自 “CoderToDeveloper” 博客,请务必保留此出处http://rongchengfei.blog.51cto.com/6269699/1430794
CGAffineTransform 获取 旋转的弧度 和 角度 的方法,布布扣,bubuko.com
CGAffineTransform 获取 旋转的弧度 和 角度 的方法
原文:http://rongchengfei.blog.51cto.com/6269699/1430794