25 lines
678 B
Objective-C
25 lines
678 B
Objective-C
//
|
|
// NSDictionary+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 NSDictionary (AvoidCrash)<AvoidCrashProtocol>
|
|
|
|
|
|
@end
|
|
|
|
|
|
/**
|
|
* Can avoid crash method
|
|
*
|
|
* 1. NSDictionary的快速创建方式 NSDictionary *dict = @{@"frameWork" : @"AvoidCrash"}; //这种创建方式其实调用的是2中的方法
|
|
* 2. +(instancetype)dictionaryWithObjects:(const id _Nonnull __unsafe_unretained *)objects forKeys:(const id<NSCopying> _Nonnull __unsafe_unretained *)keys count:(NSUInteger)cnt
|
|
*
|
|
*/
|