Click the image to view video on YouTube.com
Just add it to your .xib file or storyboard like a naviate control, or add it programatically.
you need to implement these delegate methods according to your needs.
- (void)searchBarAudioRecordButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }
- (void)searchBarCancelButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); self.searchBar.keyboardHidden = YES; }
- (void)searchBarDidBeginEditing:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }
- (void)searchBarOnEditing:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }
- (void)searchBarSearchButtonDidPress:(GJSearchBar *)searchBar{ NSLog(@"%@", NSStringFromSelector(_cmd)); }