BBACellInfoView.h
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// BBACellInfoView.h
// BBAPods
//
// Created by hulinling on 2017/8/15.
// Copyright © 2017年 Baidu. All rights reserved.
//
#import <UIKit/UIKit.h>
/// 右侧辅助视图样式
typedef NS_ENUM(NSUInteger, BBACellInfoViewAssistStyle) {
BBACellInfoViewAssistStyle_None, //!< 无
BBACellInfoViewAssistStyle_Arrow, //!< 箭头
BBACellInfoViewAssistStyle_Switch, //!< 开关
BBACellInfoViewAssistStyle_Indicator //!< 菊花
};
__attribute__((deprecated("使用nib文件,已废弃")))
@interface BBACellInfoView : UIView
@property (nonatomic, weak, readonly) UILabel *titleLabel;
@property (nonatomic, weak, readonly) UILabel *detailLabel;
@property (nonatomic, weak, readonly) UISwitch *switchView;
/// 右侧辅助视图样式(默认为BBACellInfoViewAssistStyle_None)
@property (nonatomic, assign) BBACellInfoViewAssistStyle assistStyle;
/// 是否显示分割线(默认不显示)
@property (nonatomic, assign) BOOL showSeparateLine;
/// 分割线左边距(不设置使用默认值,若设置为负数,则当作0处理)
@property (nonatomic, assign) CGFloat separateLineLeading;
/// 分割线右边距(不设置使用默认值,若设置为负数,则当作0处理)
@property (nonatomic, assign) CGFloat separateLineTrailing;
/// 点击回调
@property (nonatomic, copy) void(^didTaped)(void);
/// 是否选中
@property (nonatomic, assign) BOOL selected;
/// 副标题文案
@property (nonatomic, copy) NSAttributedString *subTitleAttrInfo;
@end