iOS 字典NSMutableDictionary判空
2018-11-30 本文已影响13人
CoderZb
类方法
+(BOOL)isNullDictionary:(NSDictionary *)dic{
if ( dic.count != 0 && dic != nil &&![dic isKindOfClass:[NSNull class]] ){
return NO;
}else{
return YES;
}
}
+(BOOL)isNullDictionary:(NSDictionary *)dic{
if ( dic.count != 0 && dic != nil &&![dic isKindOfClass:[NSNull class]] ){
return NO;
}else{
return YES;
}
}