//空字符串NSString *someEmptyString = @"";NSString *anotherEmptyString = [NSString new];if ([anotherEmptyString length] == 0) { //字符串为空}