How to access JSON values(array) in various tables
Posted
by
ramya
on Stack Overflow
See other posts from Stack Overflow
or by ramya
Published on 2011-01-03T18:31:03Z
Indexed on
2011/01/03
18:53 UTC
Read the original article
Hit count: 182
Hi,
I am getting results from JSON,
NSDictionary *pname=[[res objectAtIndex:i] objectForKey:@"ax21:productName"];
NSString *str = [pname objectForKey:@"$"];
i++;
[detArray addObject:str];
[tblviewhome reloadData];
and calling it in table like
cell.textLabel.text = [detArray objectAtIndex:indexPath.section];
this displays data in 4 sections.This is displaying data perfectly . JSON connectivity and table are in same class. but how to access this data in another table which is in another view controller.
I hope i made my self clear.
© Stack Overflow or respective owner