标签:sp app c 字符串 return class as 方法
+ (BOOL)isEmptyObject:(NSObject *)object
{
if ([object isEqual:[NSNull null]] || object == nil)
{
return YES;
}
else if ([object isKindOfClass:[NSString class]])
{
NSString *string = (NSString *)object;
if (0 == [string length])
{
return YES;
}
}
return NO;
}
血的教训,下次开工程 一点要写好判断空字符串方法,布布扣,bubuko.com
标签:sp app c 字符串 return class as 方法
原文地址:http://www.cnblogs.com/yunis/p/3919825.html