How to access JSON values(array) in various tables
- by ramya
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.