NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
case 0: //false
break;
case 1: //true
break;
}
[IOS] NSDictionary读取boolean值数据
阅读 68
2023-03-22
NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
case 0: //false
break;
case 1: //true
break;
}
相关推荐
精彩评论(0)