38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
|
//
|
||
|
|
// 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
|