BBACellInfoView.h 1.49 KB
//
//  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