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.
我有一个 UIImageView 正在进行简单的翻译动画,我试图通过 imageview.frame.origin.x 属性获取视图的坐标。但是,它给了我动画后图像视图的坐标。有没有办法获取当前坐标?
是的,您需要检查 presenationLayer 的坐标。您可以在我关于点击移动层的博客文章中阅读有关它的详细说明。