fellow stackoverflowers,
does any one know of a MapKit function that returns a BOOL or something to indicate whether two MKMapRect intersect or contain ?
fellow stackoverflowers,
does any one know of a MapKit function that returns a BOOL or something to indicate whether two MKMapRect intersect or contain ?
That's some fairly simple math, you could implement it yourself, or you could convert your MKMapRects to CGRects and use the CoreGraphics functions.
MapKit does contain some functions to help with this:
BOOL contains = MKMapRectContainsRect(rect1, rect2);
BOOL intersects = MKMapRectIntersectsRect(rect1, rect2);
See the documentation for more details and other useful functions.