NSMutableAttributedString+AvoidCrash.h 527 B

1234567891011121314151617181920212223
  1. //
  2. // NSMutableAttributedString+AvoidCrash.h
  3. // https://github.com/chenfanfang/AvoidCrash
  4. //
  5. // Created by mac on 16/10/15.
  6. // Copyright © 2016年 chenfanfang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "AvoidCrashProtocol.h"
  10. @interface NSMutableAttributedString (AvoidCrash)<AvoidCrashProtocol>
  11. @end
  12. /**
  13. * Can avoid crash method
  14. *
  15. * 1.- (instancetype)initWithString:(NSString *)str
  16. * 2.- (instancetype)initWithString:(NSString *)str attributes:(NSDictionary<NSString *,id> *)attrs
  17. */