SurfaceSearchView.h 715 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // SurfaceSearchView.h
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/9/20.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^TouchBlock)(void);
  11. @protocol SurfaceSearchViewDelegate <NSObject>
  12. - (void)searchViewBackAction;
  13. - (void)searchViewMenuAction;
  14. @end
  15. @interface SurfaceSearchView : UIView
  16. @property (nonatomic, copy) TouchBlock buttonBlock;
  17. @property (nonatomic, weak) id<SurfaceSearchViewDelegate> delegate;
  18. - (void)setBgViewColor:(UIColor *)color;
  19. - (void)setPlaceHolderText:(NSString *)text;
  20. - (void)showLineView;
  21. - (void)setLeftBackType;
  22. - (void)setRightMenuType;
  23. - (void)setMainType;
  24. @end
  25. NS_ASSUME_NONNULL_END