samedi 25 avril 2015

CGRect intersects 4 rects. How to figure out which rect it intersects mostly?


If you need more details: I have UICollectionViewCell which is draggable. When the cell overlaps other cells during dragging I want to know which one it overlaps mostly in order to replace overlapped cell with this cell. Is there any efficient way to do this? I found nothing helpful in CGGeometry. Thank you.


Aucun commentaire:

Enregistrer un commentaire