FWBadgeView
@interface FWBadgeView : UIView
提醒灯视图,默认禁用userInteractionEnabled
-
提醒灯样式,默认0自定义
Declaration
Objective-C
@property (nonatomic, readonly) FWBadgeStyle badgeStyle;
-
提醒灯文本标签。可自定义样式
Declaration
Objective-C
@property (nonatomic, readonly, nullable) UILabel *badgeLabel;
-
提醒灯右上偏移值
Declaration
Objective-C
@property (nonatomic, readonly) CGPoint badgeOffset;
-
初始化自带样式提醒灯。宽高自动布局,其它手工布局
Declaration
Objective-C
- (nonnull instancetype)initWithBadgeStyle:(FWBadgeStyle)badgeStyle;
-
初始化自定义提醒灯。宽高自动布局,其它手工布局
Declaration
Objective-C
- (nonnull instancetype)initWithBadgeHeight:(CGFloat)badgeHeight badgeOffset:(CGPoint)badgeOffset textInset:(CGFloat)textInset fontSize:(CGFloat)fontSize;