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

Popular posts from this blog

How to Create Master-Details view using Asp.Net MVC framework -

delphi - Mouseover hint for TChart series value -

c++ - Linux and clipboard -