BBAAttibutedStringAttribute.h 1.01 KB
//
//  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