Files
peko-ios/YuMi/Modules/YMRoom/View/Common/BaseRoomBannerView.h
2025-04-02 11:04:07 +08:00

36 lines
806 B
Objective-C

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface BaseRoomBannerView : UIView
// 基础属性
@property (nonatomic, strong) UIView *containerView;
@property (nonatomic, strong) UIImageView *backgroundImageView;
// 动画相关
@property (nonatomic, assign) CGFloat showDuration;
@property (nonatomic, assign) CGFloat hideDuration;
@property (nonatomic, assign) CGFloat stayDuration;
// 显示状态
@property (nonatomic, assign, readonly) BOOL isShowing;
// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame;
// 显示方法
- (void)show;
- (void)showWithCompletion:(void(^)(void))completion;
// 隐藏方法
- (void)hide;
- (void)hideWithCompletion:(void(^)(void))completion;
// 子类需要实现的方法
- (void)setupUI;
- (void)setupAnimation;
@end
NS_ASSUME_NONNULL_END