Files
2026-07-13 12:35:01 +08:00

70 lines
1.5 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// TLSettingItem.h
// TLChat
//
// Created by 李伯坤 on 16/2/7.
// Copyright © 2016年 李伯坤. All rights reserved.
//
#import <Foundation/Foundation.h>
#define CELL_ST_ITEM_NORMAL @"TLSettingItemNormalCell"
#define CELL_ST_ITEM_BUTTON @"TLSettingItemButtonCell"
#define CELL_ST_ITEM_SWITCH @"TLSettingItemSwitchCell"
#define VIEW_ST_HEADER @"TLSettingSectionHeaderView"
#define VIEW_ST_FOOTER @"TLSettingSectionFooterView"
#define TLCreateSettingItem(title) [TLSettingItem createItemWithTitle:title]
typedef NS_ENUM(NSInteger, TLSettingItemType) {
TLSettingItemTypeDefalut = 0,
TLSettingItemTypeTitleButton,
TLSettingItemTypeSwitch,
TLSettingItemTypeOther,
};
@interface TLSettingItem : NSObject
/**
* 主标题
*/
@property (nonatomic, strong) NSString *title;
/**
* 副标题
*/
@property (nonatomic, strong) NSString *subTitle;
/**
* 右图片(本地)
*/
@property (nonatomic, strong) NSString *rightImagePath;
/**
* 右图片(网络)
*/
@property (nonatomic, strong) NSString *rightImageURL;
/**
* 是否显示箭头(默认YES
*/
@property (nonatomic, assign) BOOL showDisclosureIndicator;
/**
* 停用高亮(默认NO
*/
@property (nonatomic, assign) BOOL disableHighlight;
/**
* cell类型,默认default
*/
@property (nonatomic, assign) TLSettingItemType type;
+ (TLSettingItem *)createItemWithTitle:(NSString *)title;
- (NSString *) cellClassName;
@end