Closed AdamBCo closed 10 years ago
When typing a search into the search view controller, I ran into the following issue:
2014-11-04 19:46:20.448 PunctualTime[19787:780424] -[__NSCFTimer length]: unrecognized selector sent to instance 0x7ffa0387cfb0
I was immediately brought to the following method:
(void)searchAutocompleteLocationsWithSubstring:(NSString *)substring{ [self.pastSearchQueries removeAllObjects];
[self retrieveGooglePlaceInformation:self.substring withCompletion:^(NSArray * results) { [self.pastSearchQueries addObjectsFromArray:results]; [self.tableView reloadData]; }];
for(NSString *pastSearch in self.localSearchQueries) { NSRange substringRange = [pastSearch rangeOfString:substring]; if (substringRange.location == 0) { [self.pastSearchQueries addObject:pastSearch];
}
} }
When typing a search into the search view controller, I ran into the following issue:
2014-11-04 19:46:20.448 PunctualTime[19787:780424] -[__NSCFTimer length]: unrecognized selector sent to instance 0x7ffa0387cfb0
I was immediately brought to the following method:
(void)searchAutocompleteLocationsWithSubstring:(NSString *)substring{ [self.pastSearchQueries removeAllObjects];
[self retrieveGooglePlaceInformation:self.substring withCompletion:^(NSArray * results) { [self.pastSearchQueries addObjectsFromArray:results]; [self.tableView reloadData]; }];
for(NSString *pastSearch in self.localSearchQueries) { NSRange substringRange = [pastSearch rangeOfString:substring]; if (substringRange.location == 0) { [self.pastSearchQueries addObject:pastSearch];
} }