12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // UILabel+ChangeLineSpaceAndWordSpace.h
- // Elephant
- //
- // Created by dyy on 2018/1/19.
- // Copyright © 2018年 杭州大象品牌营销策划有限公司. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UILabel (ChangeLineSpaceAndWordSpace)
- /**
- * 字间距
- */
- @property (nonatomic,assign)CGFloat characterSpace;
- /**
- * 行间距
- */
- @property (nonatomic,assign)CGFloat lineSpace;
- /**
- * 关键字
- */
- @property (nonatomic,copy)NSString *keywords;
- @property (nonatomic,strong)UIFont *keywordsFont;
- @property (nonatomic,strong)UIColor *keywordsColor;
- /**
- * 下划线
- */
- @property (nonatomic,copy)NSString *underlineStr;
- @property (nonatomic,strong)UIColor *underlineColor;
- /**
- * 计算label宽高,必须调用
- *
- * @param maxWidth 最大宽度
- *
- * @return label的rect
- */
- - (CGSize)getLableRectWithMaxWidth:(CGFloat)maxWidth;
- @end
|