
- (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];
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.