1
2
3
4
5
6
7
对于Array
if (array && array.count) {
 
}
 
对于字符串String
if (string && string.length && [string isEqualToString:@""])

相关文章: