iOS基础(十五)——判断字典的某个值是否为NSNULL
判断字典的某个值是否为NSNULL
+(BOOL)isJudgeDictionary:(NSString *)string{
if (string==nil || string==NULL) {
return NO;
}
if ([string isKindOfClass:[NSNull class]]) {
return NO;
}
if (string.length==0) {
return NO;
}
return YES;
}