if ([self.curriculum[@"name"] length] == 0) {
textLabel.text = @"去吧 皮卡丘";
}else{
textLabel.text = [NSString stringWithFormat:@"%@",self.curriculum[@"name"]];
}
判断字典为输出为null
最新推荐文章于 2022-08-28 10:21:34 发布
if ([self.curriculum[@"name"] length] == 0) {
textLabel.text = @"去吧 皮卡丘";
}else{
textLabel.text = [NSString stringWithFormat:@"%@",self.curriculum[@"name"]];
}