You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
// |
|
// TYTextStorage.h |
|
// TYAttributedLabelDemo |
|
// |
|
// Created by tanyang on 15/4/8. |
|
// Copyright (c) 2015年 tanyang. All rights reserved. |
|
// |
|
|
|
#import "TYTextStorageProtocol.h" |
|
#import <CoreText/CoreText.h> |
|
|
|
@interface TYTextStorage : NSObject<TYAppendTextStorageProtocol> |
|
|
|
@property (nonatomic, assign) NSInteger tag; // 标识 |
|
@property (nonatomic, assign) NSRange range; //如果appendStorage, range只针对追加的文本 |
|
@property (nonatomic, assign) NSRange realRange; // label文本中实际位置,因为某些文本被替换,会导致位置偏移 |
|
@property (nonatomic, strong) NSString *text; // 只针对追加text文本 |
|
@property (nonatomic, strong) UIColor *textColor; // 文本颜色 |
|
@property (nonatomic, strong) UIFont *font; // 字体 |
|
|
|
@property (nonatomic, assign) CTUnderlineStyle underLineStyle;// 下划线样式(单 双)(默认没有) |
|
@property (nonatomic, assign) CTUnderlineStyleModifiers modifier;// 下划线样式 (点 线)(默认线) |
|
|
|
@end
|
|
|