Created
July 8, 2014 04:24
-
-
Save DougFischer/676b1ebbd2260d3dca7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (BOOL)textField:(UITextField *)textField | |
| shouldChangeCharactersInRange:(NSRange)range | |
| replacementString:(NSString *)string { | |
| autocompleteTableView.hidden = NO; | |
| NSString *substring = [NSString stringWithString:textField.text]; | |
| substring = [substring | |
| stringByReplacingCharactersInRange:range withString:string]; | |
| [self searchAutocompleteEntriesWithSubstring:substring]; | |
| return YES; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment