You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
668 B
34 lines
668 B
4 years ago
|
//
|
||
|
// TFSearchBar.h
|
||
|
// TFReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/24.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@protocol TFSearchBarDelegate <NSObject>
|
||
|
@optional
|
||
|
|
||
|
- (void)cancelButtonClicked;
|
||
|
|
||
|
- (void)searchButtonClickedWithSearchText:(NSString *)searchText;
|
||
|
|
||
|
- (void)searchBarCleanText;
|
||
|
@end
|
||
|
|
||
|
@interface TFSearchBar : UIView<UITextFieldDelegate>
|
||
|
|
||
|
@property (nonatomic ,weak) id <TFSearchBarDelegate> delegate;
|
||
|
@property (nonatomic ,copy) NSString *placeholderText;
|
||
|
@property (nonatomic ,copy) NSString *searchText;
|
||
|
|
||
|
- (void)searchBarResignFirstResponder;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|