NSAttributedString+AvoidCrash.h 595 B

12345678910111213141516171819202122232425
  1. //
  2. // NSAttributedString+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 NSAttributedString (AvoidCrash)<AvoidCrashProtocol>
  11. @end
  12. /**
  13. * Can avoid crash method
  14. *
  15. * 1.- (instancetype)initWithString:(NSString *)str
  16. * 2.- (instancetype)initWithAttributedString:(NSAttributedString *)attrStr
  17. * 3.- (instancetype)initWithString:(NSString *)str attributes:(NSDictionary<NSString *,id> *)attrs
  18. *
  19. *
  20. */