//
//  SafeForKey.h
//  SecondBrush
//
//  Created by zzs on 2015/12/14.
//  Copyright © 2016年 allen. All rights reserved.
//

#import <Foundation/Foundation.h>


//可以让字典安全的去取值
@interface NSDictionary (safeforkey)
//如果为nil,返回 @""
-(id)safeStringForKey:(NSString *)key;
//如果为nil,返回 @"0"
-(id)safeStringIntForKey:(NSString *)key;
//如果为nil,返回 空数组
-(id)safeArrayForKey:(NSString *)key;
//如果为nil,返回 空字典
-(id)safeDictionaryForKey:(NSString *)key;

@end




