-(NSString*)returnString:(NSString*)string{
if ([string isKindOfClass:[NSString class]]) {
if (string.length > 0) {
return string;
}
else {
return @"--";
}
}
else {
return @"--";
}
}
-(NSString*)returnString:(NSString*)string{
if ([string isKindOfClass:[NSString class]]) {
if (string.length > 0) {
return string;
}
else {
return @"--";
}
}
else {
return @"--";
}
}
本文标题:字符串判空
本文链接:https://www.haomeiwen.com/subject/oajnjxtx.html
网友评论