EMSearchBar.h 702 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // EMSearchBar.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/1/16.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol EMSearchBarDelegate;
  11. @interface EMSearchBar : UIView
  12. @property (nonatomic, weak) id<EMSearchBarDelegate> delegate;
  13. @property (nonatomic, strong) UITextField *textField;
  14. @end
  15. @protocol EMSearchBarDelegate <NSObject>
  16. @optional
  17. - (void)searchBarShouldBeginEditing:(EMSearchBar *)searchBar;
  18. - (void)searchBarCancelButtonAction:(EMSearchBar *)searchBar;
  19. - (void)searchBarSearchButtonClicked:(NSString *)aString;
  20. - (void)searchTextDidChangeWithString:(NSString *)aString;
  21. @end
  22. NS_ASSUME_NONNULL_END