Files
midi_ios/QXLive/Mine(音域)/View/设置/QXSettingCell.h

38 lines
1.1 KiB
C
Raw Normal View History

2025-08-14 10:07:49 +08:00
//
// 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