26 lines
595 B
Objective-C
26 lines
595 B
Objective-C
//
|
|
// NSAttributedString+AvoidCrash.h
|
|
// https://github.com/chenfanfang/AvoidCrash
|
|
//
|
|
// Created by mac on 16/10/15.
|
|
// Copyright © 2016年 chenfanfang. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "AvoidCrashProtocol.h"
|
|
|
|
@interface NSAttributedString (AvoidCrash)<AvoidCrashProtocol>
|
|
|
|
|
|
@end
|
|
|
|
/**
|
|
* Can avoid crash method
|
|
*
|
|
* 1.- (instancetype)initWithString:(NSString *)str
|
|
* 2.- (instancetype)initWithAttributedString:(NSAttributedString *)attrStr
|
|
* 3.- (instancetype)initWithString:(NSString *)str attributes:(NSDictionary<NSString *,id> *)attrs
|
|
*
|
|
*
|
|
*/
|