开发者

how to get UIView 's angle after CGAffineTransform?

开发者 https://www.devze.com 2023-01-31 18:34 出处:网络
i have been do moreCGAffineTransform. how to get current Uiview\'sangle? i want to d开发者_Python百科o something when angle==[M_PI/2 ~ M_PI]?CGFloat radians = atan2f(self.view.transform.b, self.view

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

精彩评论

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