BBAAttibutedStringAttribute.h
1.01 KB
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
//
// BBAAttibutedStringAttribute.h
//
//
// Created by linling on 15/6/27.
// Copyright (c) 2015年 baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface BBAAttibutedStringAttribute : NSObject
/**
* 属性应用范围
*/
@property (nonatomic, readonly) NSRange range;
/**
* 属性
*/
@property (nonatomic, strong, readonly) NSDictionary *attrDic;
- (BBAAttibutedStringAttribute *(^)(UIColor *))color;
- (BBAAttibutedStringAttribute *(^)(UIFont *))font;
- (BBAAttibutedStringAttribute *(^)(NSTextAlignment))alignment;
- (BBAAttibutedStringAttribute *(^)(CGFloat))lineSpace;
- (BBAAttibutedStringAttribute *(^)(NSLineBreakMode))lineBreakMode;
- (BBAAttibutedStringAttribute *(^)(CGFloat))wordSpace;
- (BBAAttibutedStringAttribute *(^)(NSInteger))underline;
- (void(^)(NSRange))rangeAttribute;
@end
@interface BBAAttibutedStringAttachmentAttribute : NSObject
@property (nonatomic, strong) NSTextAttachment *attachment;
@property (nonatomic, assign) NSRange range;
@end