Possible Duplicate:
How to determine if an annotation is inside of MKPolygonView (iOS)
I am trying to determine wether a location is contained inside an overlay on my MKMapView.
I have looked at MKMapRectContainsPoint
and that works if the overlay is a rectangle; using the boundingMapRect
property of MKOverlay.
The problem is that if the region is not a rectangle the function will still returns true as it looks at the max and minimum coordinates to create the square.
I would really appreciate any help on this!
Thanks!