SPGooglePlacesAutocomplete
SPGooglePlacesAutocomplete copied to clipboard
Dropping Placemark Freezes MapView
When a placemark is added, the view becomes unresponsive.
in - (void)dismissSearchControllerWhileStayingActive {
add
[self.searchDisplayController setActive:NO];
-
(void)dismissSearchControllerWhileStayingActive { // Animate out the table view. [self.searchDisplayController setActive:NO]; NSTimeInterval animationDuration = 0.3; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:animationDuration]; self.searchDisplayController.searchResultsTableView.alpha = 0.0; [UIView commitAnimations];
[self.searchDisplayController.searchBar setShowsCancelButton:NO animated:YES]; [self.searchDisplayController.searchBar resignFirstResponder]; }
I noticed this pb on IOS 7
Thank you, I ran into this issue as well. Adding [self.searchDisplayController setActive:NO]; worked great!