IOS对象是否为空判断

来源:互联网 发布:如何登陆淘宝店铺 编辑:程序博客网 时间:2024/06/11 01:25

当JSON 返回 {} 时


_weatherMd.strTmpCurrent && ![_weatherMd.strTmpCurrent isEqual:[NSNull null]] && ![_weatherMd.strTmpCurrent isEqualToString:@""]&& ![_weatherMd.strTmpCurrent isKindOfClass:[NSNull class]]

0 0
原创粉丝点击