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.
我有一个CGPoint在屏幕坐标中的。我还有一个CALayer应用变换矩阵(缩放、旋转和平移)。
CGPoint
CALayer
如何将屏幕坐标中的点转换为图层的局部坐标?
CALayer有方法可以做到这一点,在文档– convertPoint:fromLayer:中查找和– convertPoint:toLayer:
– convertPoint:fromLayer:
– convertPoint:toLayer: