get values of particular key in nsdictionary

前端 未结 3 2038
醉话见心
醉话见心 2020-12-24 07:55

I saved the json parsing result in a dictionary which look like:

{
 \"statusCode\":\"200\",
\"body\":[
  {
     \"status\":\"succes         


        
3条回答
  •  借酒劲吻你
    2020-12-24 08:20

    Check like this:

    NSString *value=[[[getcate valueForKey:@"abcd"] objectAtIndex:0] valueForKey:@"category"];
    

提交回复
热议问题