- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { Searchbar.autocorrectionType = UITextAutocorrectionTypeNo; } - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar // called when keyboard search button pressed { NSLog( @" Searchbar text = %@",searchBar.text); if (appDel.flag==2||appDel.flag==3||appDel.flag==4||appDel.flag==5||appDel.flag==6) { NSLog(@"23456"); strSearch=appDel.str_searched; } strSearch=searchBar.text; appDel.str_searched=strSearch; strSearch=[strSearch stringByReplacingOccurrencesOfString:@" " withString:@"+"]; [searchBar resignFirstResponder]; [self searchGooglePhotos:nil]; [tbl_place reloadData]; } - (void)searchBarCancelButtonClicked:(UISearchBar *) searchBar // called when cancel button pressed { [searchBar resignFirstResponder]; }
Ads