check current location is in MkPolygons
问题 I am working in an IOS 7 project ,it contains a location checking (current location is in given polygons). I am Using the following code to check the condition Created an array of MKPolygons for(MKPolygon *poly in self.polygonArray) { [self checkTheLocationIsInPolygon:currentLocation polygon:poly]; } - (void)checkTheLocationIsInPolygon:(CLLocation*)aLocation polygon:(MKPolygon*)aPolygon { CLLocationCoordinate2D coordinate = {aLocation.coordinate.latitude, aLocation.coordinate.longitude};