NSMutableArray+AvoidCrash.h 674 B

1234567891011121314151617181920212223242526
  1. //
  2. // NSMutableArray+AvoidCrash.h
  3. // https://github.com/chenfanfang/AvoidCrash
  4. //
  5. // Created by mac on 16/9/21.
  6. // Copyright © 2016年 chenfanfang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "AvoidCrashProtocol.h"
  10. @interface NSMutableArray (AvoidCrash)<AvoidCrashProtocol>
  11. @end
  12. /**
  13. * Can avoid crash method
  14. *
  15. * 1. - (id)objectAtIndex:(NSUInteger)index
  16. * 2. - (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx
  17. * 3. - (void)removeObjectAtIndex:(NSUInteger)index
  18. * 4. - (void)insertObject:(id)anObject atIndex:(NSUInteger)index
  19. * 5. - (void)getObjects:(__unsafe_unretained id _Nonnull *)objects range:(NSRange)range
  20. */