增加换肤功能
This commit is contained in:
54
TUIKit/TIMCommon/CommonModel/TUIFloatViewController.h
Normal file
54
TUIKit/TIMCommon/CommonModel/TUIFloatViewController.h
Normal file
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// TUIFloatViewController.h
|
||||
// TIMCommon
|
||||
//
|
||||
// Created by wyl on 2023/1/16.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol TUIFloatSubViewControllerProtocol <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
@property(nonatomic, copy) void (^floatDataSourceChanged)(NSArray *arr);
|
||||
|
||||
- (void)floatControllerLeftButtonClick;
|
||||
|
||||
- (void)floatControllerRightButtonClick;
|
||||
|
||||
@end
|
||||
|
||||
@interface TUIFloatTitleView : UIView
|
||||
|
||||
@property(nonatomic, strong) UIButton *leftButton;
|
||||
@property(nonatomic, strong) UIButton *rightButton;
|
||||
@property(nonatomic, copy) void (^leftButtonClickCallback)(void);
|
||||
@property(nonatomic, copy) void (^rightButtonClickCallback)(void);
|
||||
@property(nonatomic, strong) UILabel *titleLabel;
|
||||
@property(nonatomic, strong) UILabel *subTitleLabel;
|
||||
|
||||
- (void)setTitleText:(NSString *)mainText subTitleText:(NSString *)secondText leftBtnText:(NSString *)leftBtnText rightBtnText:(NSString *)rightBtnText;
|
||||
@end
|
||||
|
||||
@interface TUIFloatViewController : UIViewController
|
||||
@property(nonatomic, strong) TUIFloatTitleView *topGestureView;
|
||||
@property(nonatomic, strong) UIImageView *topImgView;
|
||||
@property(nonatomic, strong) UIView *containerView;
|
||||
@property(nonatomic, strong) UIViewController<TUIFloatSubViewControllerProtocol> *childVC;
|
||||
|
||||
- (void)updateSubContainerView;
|
||||
|
||||
- (void)setnormalTop;
|
||||
|
||||
- (void)setNormalBottom;
|
||||
|
||||
- (void)appendChildViewController:(UIViewController<TUIFloatSubViewControllerProtocol> *)vc topMargin:(CGFloat)topMargin;
|
||||
|
||||
- (void)floatDismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user