I am using TableViewCell in my application. and the cell data like label text and image from imageview at perticular cell. should view in next view controller.
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
MainBodyViewController * mainViewController =[[MainBodyViewController alloc]init];
MasterDetails * masted =(MasterDetails*)[listArray objectAtIndex:indexPath.row];
NSLog(@"did select row at index is givne as:%@",masted);
mainViewController.headLbl.text=[NSString stringWithFormat:@"%@",masted.title];
}
But the problem is I am not getting data from listArray. The data coming from json.