NSString 使用
1.判断是否为空
if (0 == [strObj length]) { //strObj is a empty string }
2.判断是否包含了子字符串
if ([strObj rangeofString:@"search"].lenght == 0) { //strObj not contain sub string "search" }
1.判断是否为空
if (0 == [strObj length]) { //strObj is a empty string }
2.判断是否包含了子字符串
if ([strObj rangeofString:@"search"].lenght == 0) { //strObj not contain sub string "search" }