Created
November 22, 2012 10:11
-
-
Save jlcampana/4130384 to your computer and use it in GitHub Desktop.
Lanzar búsqueda mientras escribes
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 | |
{ | |
NSString *newSearch = [textField.text stringByReplacingCharactersInRange:range withString:string]; | |
NSLog(@"%@",newSearch); | |
if ([newSearch length] >= MIN_NUMBER_OF_CHARACTERS_TO_LAUCH_SEARCH) | |
{ | |
//Hacer búsqueda con newSearch | |
} | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment