NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
case 0: //false
break;
case 1: //true
break;
}
微信扫一扫
NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
case 0: //false
break;
case 1: //true
break;
}
相关推荐