27 lines
674 B
Objective-C
27 lines
674 B
Objective-C
//
|
|
// NSMutableArray+AvoidCrash.h
|
|
// https://github.com/chenfanfang/AvoidCrash
|
|
//
|
|
// Created by mac on 16/9/21.
|
|
// Copyright © 2016年 chenfanfang. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "AvoidCrashProtocol.h"
|
|
|
|
@interface NSMutableArray (AvoidCrash)<AvoidCrashProtocol>
|
|
|
|
|
|
@end
|
|
|
|
|
|
/**
|
|
* Can avoid crash method
|
|
*
|
|
* 1. - (id)objectAtIndex:(NSUInteger)index
|
|
* 2. - (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx
|
|
* 3. - (void)removeObjectAtIndex:(NSUInteger)index
|
|
* 4. - (void)insertObject:(id)anObject atIndex:(NSUInteger)index
|
|
* 5. - (void)getObjects:(__unsafe_unretained id _Nonnull *)objects range:(NSRange)range
|
|
*/
|