When running the following code too often (e.g. every time a user enters text into a UISearchBar) it seems like the application stops servicing the requests. Does Apple have a burst limit on map requests? I also had one case where it blocked requests from my cloud database (through Parse), but nothing in the code below refers to the database so I don't believe those two are really related other than the fact that I'm probably sending too many requests concurrently. Does anyone have any insight into this?
MKLocalSearchRequest *request = [[MKLocalSearchRequest alloc] init];
request.naturalLanguageQuery = searchBar.text;
if(self.foundLocation) {
request.region = MKCoordinateRegionMake(self.currentLocation.coordinate,MKCoordinateSpanMake(0.1,0.1));
}
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
self.localSearch = [[MKLocalSearch alloc] initWithRequest:request];
[self.localSearch startWithCompletionHandler:^(MKLocalSearchResponse *response, NSError *error){
self.results = response;
[self.tableView reloadData];
}];