标签:ar sp strong on bs as line new nbsp
// 判断文字是否为空格 (一个或者多个空格)
-(BOOL)isEmpty:(NSString *)str
{
if (!str) {
returntrue;
} else {
NSCharacterSet *set = [NSCharacterSetwhitespaceAndNewlineCharacterSet];
NSString *trimedString = [str stringByTrimmingCharactersInSet:set];
if ([trimedString length] == 0) {
returntrue;
} else {
returnfalse;
}
}
}
标签:ar sp strong on bs as line new nbsp
原文地址:http://www.cnblogs.com/liman1990/p/4122600.html