Skip to content

xuguojun/CustomSearchBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomSearchBar

Click the image to view video on YouTube.com

ScreenShot

Using

Just add it to your .xib file or storyboard like a naviate control, or add it programatically.

Delegate method

you need to implement these delegate methods according to your needs.

searchBarAudioRecordButtonDidPress:

  • (void)searchBarAudioRecordButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }

searchBarCancelButtonDidPress:

  • (void)searchBarCancelButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); self.searchBar.keyboardHidden = YES; }

searchBarDidBeginEditing:

  • (void)searchBarDidBeginEditing:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }

searchBarOnEditing:

  • (void)searchBarOnEditing:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }

searchBarSearchButtonDidPress:

  • (void)searchBarSearchButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published