开发者

how to get UIView 's angle after CGAffineTransform?

i have been do more CGAffineTransform.

how to get current Uiview's angle?

i want to d开发者_Python百科o something when angle==[M_PI/2 ~ M_PI]?


CGFloat radians = atan2f(self.view.transform.b, self.view.transform.a); CGFloat degrees = radians * (180 / M_PI);


You can check .transfrom property of UIView for that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜