简体   繁体   English

旋转后如何获取UIImageView右上角的坐标?

[英]How do I get the coordinates for the top right corner of a UIImageView after it's been rotated?

旋转后,如何获取uiimageview右上角的坐标?

I found out how to do what I am doing except it is not exactly the complete solution to the QUESTION it is the solution to my problem. 我发现了如何做我正在做的事情,只不过它并不是对问题的完整解决方案,而是对我的问题的解决方案。 All I had to do was the image view I wanted on the top right corner of the image view being rotated had to be added as a subview of the image rotated and moved by an offset to be at the corner. 我要做的就是在旋转的图像视图的右上角添加我想要的图像视图,作为旋转并移动了一定偏移量的图像的子视图在角落。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM