// // InfoSearchView.h // TheoryNetwork // // Created by tederen on 2019/9/20. // Copyright © 2019 tederen. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { InfoSearchViewTypeDefault, InfoSearchViewTypeCancel, } InfoSearchViewType; typedef void(^TouchBlock)(void); @protocol InfoSearchViewDelegate - (void)searchButtonAction:(UISearchBar *)searchBar; @optional //- (void)searchClearXButtonAction:(UISearchBar *)searchBar; - (void)textDidChange:(NSString *)text; @end @interface InfoSearchView : UIView @property (nonatomic, copy) TouchBlock backBlock; @property (nonatomic, copy) TouchBlock menuBlock; @property (nonatomic, copy) TouchBlock cancelBlock; @property (nonatomic, weak) id delegate; @property (nonatomic, strong) TDSearchBar *searchBar; @property (nonatomic, copy) NSString *searchPlaceholder; - (instancetype)initWithFrame:(CGRect)frame type:(InfoSearchViewType)type; - (void)setNowSearchData:(NSString *)searchStr; - (void)showLineView; @end NS_ASSUME_NONNULL_END