+ (BOOL)stringIsNullOrEmpty:(NSString *)inputStr {
BOOL isEmpty=YES;
if (inputStr.length && [[inputStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]!=0) {
isEmpty=NO;
}
return isEmpty;
}
+ (BOOL)stringIsNullOrEmpty:(NSString *)inputStr {
BOOL isEmpty=YES;
if (inputStr.length && [[inputStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]!=0) {
isEmpty=NO;
}
return isEmpty;
}
本文标题:判断字符串是否是空或空格
本文链接:https://www.haomeiwen.com/subject/wgwvzttx.html
网友评论