标签:trim min imm null ret char ios ace string
- (BOOL) isBlankString:(NSString *)string {
if (string == nil || string == NULL) {
return YES;
}
if ([string isKindOfClass:[NSNull class]]) {
return YES;
}
if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {
return YES;
}
return NO;
}
标签:trim min imm null ret char ios ace string
原文地址:http://www.cnblogs.com/fantasy940155655/p/7008566.html