0
点赞
收藏
分享

微信扫一扫

[IOS] NSDictionary读取boolean值数据

Yaphets_巍 2023-03-22 阅读 67


NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
case 0: //false
break;
case 1: //true
break;
}

举报

相关推荐

0 条评论