iphone - how to get UIImageView coordinates? -
I have to calculate an angle between two UIImageViews and I do not know how to get the UIImageViews coordinates (four corner coordinates ). Is there any property for this?
Thanks
You should be able to find any angle with trigonometric functions .
For example, it will find an angle between two UIImageViews centers, which shares a supervision:
angle = tan ((imageView1.center .y- ImageView2.center.y), (imageView1.center.x-imageView2.center.x));
It is important that they are in the same supervision, otherwise the coordinates will be different. To find angles you need to understand the basics.
Comments
Post a Comment