增加换肤功能
This commit is contained in:
34
TUIKit/TUISearch/UI_Classic/UI/TUISearchBar.h
Normal file
34
TUIKit/TUISearch/UI_Classic/UI/TUISearchBar.h
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// TUISearchBar.h
|
||||
// Pods
|
||||
//
|
||||
// Created by harvy on 2020/12/23.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class TUISearchBar;
|
||||
@protocol TUISearchBarDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
- (void)searchBarDidEnterSearch:(TUISearchBar *)searchBar;
|
||||
- (void)searchBarDidCancelClicked:(TUISearchBar *)searchBar;
|
||||
- (void)searchBar:(TUISearchBar *)searchBar searchText:(NSString *)key;
|
||||
@end
|
||||
|
||||
@interface TUISearchBar : UIView
|
||||
|
||||
@property(nonatomic, strong, readonly) UISearchBar *searchBar;
|
||||
|
||||
@property(nonatomic, weak) id<TUISearchBarDelegate> delegate;
|
||||
// use weak, prevent circular references
|
||||
@property(nonatomic, weak) UIViewController *parentVC;
|
||||
|
||||
- (void)setEntrance:(BOOL)isEntrance;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user