how to display elements from json to table view?
i am new in iphone development , i have an json response like :-` ( { 0 =
1; 1 = Pradeep; 2 = ""; 3 = ""; "friendship_flag" = ""; id = 1; name =
Pradeep; sender = ""; }, { 0 = 2; 1 = Pradeep; 2 = ""; 3 = "";
"friendship_flag" = ""; id = 2; name = Pradeep; sender = ""; }, i want to
display all names on table view . my code like as:- NSDictionary
*allDataDictionary=[NSJSONSerialization JSONObjectWithData:webData
options:0 error:nil]; NSLog(@"Data from Web %@",allDataDictionary);
NSArray *feedforentry=[allDataDictionary objectForKey:@"1"];
[array addObject:name]; //array will be display on table view .
Thanks in Advance .
No comments:
Post a Comment