Hi guys, I have an uiimageviews that are able to be dragged inside a uiscrollview. I want to be able to drag an image to a certain area(bottom right side of screen) such as a trashcan. This works for a normal view, but I also want it to work when the uiscrollview is zoomed in at any level. I know there's a method in view that is ConvertRect and also ConvertPoint, which changes the coordinate system from one view to another for the rectangle, but it's not working the way I implemented it. Here's the code I have so far:
[mycontroller.view convertRect:mycontroller.trashcan.bounds toView:mycontroller.mapcontainer];
[mycontroller.view convertRect:self.frame toView:mycontroller.mapcontainer];
if(CGRectIntersectsRect(self.frame, mycontroller.trashcan.bounds))
I convert the rect of trashcan to the mapview(scrollview). And then I check if the image intersects the trashcan.
That's basically my issue, I've been trying to find this issue somewhere but it's pretty unique. Thanks to anyone who has any insight!