Created
December 26, 2011 17:37
-
-
Save pratikshabhisikar/1521695 to your computer and use it in GitHub Desktop.
This file contains 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
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar{ | |
[pc2macSearchBar setShowsCancelButton:YES animated:YES]; | |
} | |
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar{ | |
[pc2macSearchBar resignFirstResponder]; | |
[pc2macSearchBar setShowsCancelButton:NO animated:YES]; | |
} | |
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar{ | |
[self searchPc2Mac:searchBar.text]; | |
[pc2macSearchBar resignFirstResponder]; | |
[pc2macSearchBar setShowsCancelButton:NO animated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment