123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // InfoSearchView.h
- // TheoryNetwork
- //
- // Created by tederen on 2019/9/20.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef enum : NSUInteger {
- InfoSearchViewTypeDefault,
- InfoSearchViewTypeCancel,
- } InfoSearchViewType;
- typedef void(^TouchBlock)(void);
- @protocol InfoSearchViewDelegate <NSObject>
- - (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 cancelBlock;
- @property (nonatomic, weak) id<InfoSearchViewDelegate> 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
|