Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在做更多的 CGAffineTransform。
如何获取当前 Uiview 的角度?
我想在angle==[M_PI/2 ~ M_PI]的时候做点什么?
CGFloat radians = atan2f(self.view.transform.b, self.view.transform.a); CGFloat degrees = radians * (180 / M_PI);
你可以检查 UIView 的 .transfrom 属性。