You 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;
}
You can download this project and just run it.