Sample project about table cell with segue to other view controller
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
TableCellToView.xcodeproj Initial commit Aug 9, 2012
TableCellToView Initial commit Aug 9, 2012 added readme Aug 9, 2012

u can wire from TableViewController to other view.


For example, at first, you can set TableViewCell as below:


When tap the cell, the view with the number of tapped cell.


To send the number of tapped cell to next ViewController, you can use performSegueWithIdentifier:sender: and prepareForSegue:sender as below.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    [self performSegueWithIdentifier:@"showDetail" 
                              sender:[NSString stringWithFormat:@"%d", indexPath.row + 1]];

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    DetailViewController *c = segue.destinationViewController;
    c.string = (NSString *)sender;