using JSON how to pass data from table view to section view on iphone
<p>i have all that data with me in tableview but when i dont know how to transfer these values on section view when user press any cell</p>

<p>this is how i am getting values
[[jsonArray objectAtIndex:indexPath.row] objectForKey:@"number"];</p>

<p>now how to  transfer these values to section </p>

<pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    UITableViewCell *cell;
    static NSString *CellIdentifier = @"Cell";







   cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil ) {

        NSLog(@" inside");
        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];



        mainLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10.0, 5.0, 220.0, 15.0)] autorelease];

        mainLabel.tag =33;

        //  mainLabel.font = [UIFont systemFontOfSize:14.0];
        [mainLabel setFont:[UIFont boldSystemFontOfSize:[UIFont smallSystemFontSize]]];

        mainLabel.textAlignment = UITextAlignmentLeft;

        mainLabel.textColor = [UIColor blackColor];
        mainLabel.highlightedTextColor = [UIColor greenColor];

        //mainLabel.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleHeight;

        [cell.contentView addSubview:mainLabel];
        mainLabel.backgroundColor=[UIColor clearColor];


    }
//  NSDictionary *itemAtIndex = (NSDictionary *)[jsonArray objectAtIndex:indexPath.row];
    //[cell setData:itemAtIndex];

    mainLabel.text = [[jsonArray objectAtIndex:indexPath.row] objectForKey:@"number"];
    NSLog(@" dicst 5@",stream);
            cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
                return cell;

}






- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
            // Navigation logic -- create and push a new view controller
            NSLog(@" push");

//**[[jsonArray objectAtIndex:indexPath.row] objectForKey:@"number"];**  how to do this so i can access from section view 

            aDetail = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];



            [self.navigationController pushViewController:aDetail animated:YES];

            [aDetail release];


        }
</code></pre>
