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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// GMHighlightLabel.h
// Gengmei
//
// Created by wangyang on 6/11/15.
// Copyright (c) 2015 Wanmeichuangyi. All rights reserved.
//
#import <GMKit/GMLabel.h>
NS_ASSUME_NONNULL_BEGIN
/**
* @brief 设置font,textColor,及GMHightlightLabel特有的lineHeight、hightlightColor以配置要显示的字符串属性
*/
@interface GMHighlightLabel : GMLabel
/**
* @brief 对齐方式
*/
@property (nonatomic, assign) NSTextAlignment aligment;
/**
* @brief 行高
*/
@property (nonatomic, assign) CGFloat lineHeight;
/**
* @brief 默认是 MAIN_VISUL_COLOR
*/
@property (nonatomic, strong) UIColor *hightlightColor;
/**
* @brief 默认是 MAIN_VISUL_COLOR
*/
@property (nonatomic, strong) UIColor *normalColor;
/**
* @brief 带高亮标志的原始字符串
*
*/
@property (nonatomic, copy) NSString *originalHightlightText;
/**
* @brief 默认不加粗
*/
@property (nonatomic, strong) UIFont *hightlightFont;
/**
* @author licong, 16-12-30 18:12:58
*
* 创建一个高亮lable
*
* @param color label颜色
* @param font title的font大小
*
* @return 一个高亮lable
*
* @since 5.8
*/
+ (GMHighlightLabel *)hightLabelTextColor:(UIColor *)color andFont:(CGFloat)font;
@end
NS_ASSUME_NONNULL_END