NSDictionary读取boolean值数据

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

posted on 2014-08-15 19:09  &大飞  阅读(918)  评论(0)    收藏  举报

导航