增加换肤功能

This commit is contained in:
启星
2025-08-14 10:07:49 +08:00
parent f6964c1e89
commit 4f9318d98e
8789 changed files with 978530 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
//
// QXSettingCell.h
// QXLive
//
// Created by 启星 on 2025/5/12.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger) {
/// 显示左侧label 右侧lable 向右箭头
QXSettingCellTypeNormal = 0,
/// 只显示右侧详细信息
QXSettingCellTypeOnlyDetail = 1,
/// 只显示箭头
QXSettingCellTypeOnlyArrow,
/// 开关
QXSettingCellTypeSwitch,
/// 标题在上 详情在下 带箭头
QXSettingCellTypeTitleTopAndArrow,
/// 标题在上 详情在下 不带箭头
QXSettingCellTypeTitleTopNoArrow
}QXSettingCellType;
NS_ASSUME_NONNULL_BEGIN
@interface QXSettingCell : UITableViewCell
@property (strong, nonatomic) UILabel *titleLabel;
@property (strong, nonatomic) UILabel *detailLabel;
@property (strong, nonatomic) UIImageView *rightArrow;
@property (strong, nonatomic) NSLayoutConstraint *rightConstraint;
@property (strong, nonatomic) UIButton *btnSwitch;
@property (strong, nonatomic) UIView *lineView;
@property (assign, nonatomic) QXSettingCellType cellType;
@property (assign, nonatomic) BOOL needLine;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end
NS_ASSUME_NONNULL_END