Guest User

Untitled

a guest
Jun 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText{
  2. if((searchType == SEARCH_AS_YOU_TYPE) && ([searchText length] >= 2)){
  3. NSString *myKeyword = [NSString stringWithFormat:@"%@", searchText];
  4. [self search:myKeyword];
  5. [myTableView reloadData];
  6. }
  7. }
  8.  
  9. SELECT WORD_ID, DEFIN, PINYIN, SIMP, TRAD from WORDS where DEFIN LIKE "%to dog %" OR DEFIN LIKE "%dog" OR DEFIN LIKE "%dog%" ORDER BY DEFIN LIMIT 50
  10.  
  11. [self performSelectorInBackground:@selector(threadedFetch) withObject:nil];
Add Comment
Please, Sign In to add comment