I have a UISearchbar with delegate method
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
if(searchText.length>3){
[self updateSearchString:searchText];
}
}
updateSearchString goes out to the internet to get the results, formats them and updates the table view. I do not want this to occur if the user hits the backspace key. So I am thinking something like:
if(searchText.length>3 && lastCharacterTyped!=backspace){
}
How do i determine the 2nd part?