ios - How do I get properties out of NSDictionary? -
i have webservice returns data client application in json. using touchjson deserialize data nsdictionary. great. dictionary contains key, "results" , results contains nsarray of objects.
these objects when printed log i.e
nslog(@"results contents: %@",[resultsarray objectatindex:0 ]);
outputs:
results contents: { creationdate = "2011-06-29 22:03:24"; id = 1; notes = "this test item"; title = "test item"; "users_id" = 1; }
i can't determine type object is. how properties , values object?
thanks!
to content of nsdictionary
have supply key value want retrieve. i.e:
nsstring *notes = [[resultsarray objectatindex:0] valueforkey:@"notes"];
Comments
Post a Comment