[英]How do I transpose a view's frame to it's superview?
Not even sure how to ask this. 甚至不确定如何问这个问题。 Transpose local coordinates to global? 将本地坐标转换为全局坐标?
The UIView class has a handful of methods for converting coordinates of CGPoints or CGRects from one view to another. UIView类有一些方法可以将CGPoints或CGRects的坐标从一个视图转换为另一个视图。 Take a look at convertPoint:toView:, convertPoint:fromView:, etc in the UIView class reference. 在UIView类引用中查看convertPoint:toView:,convertPoint:fromView:等 。
You can convert coordinates from one view to another or from any view to the window or vice versa. 您可以将坐标从一个视图转换为另一个视图,也可以从任何视图转换为窗口,反之亦然。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.