at kaneshin

Free space for me.

Can I get a selected row of cell on Segue?

テーブルのセルの選択したものを知りつつ、セグエを使うとき

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([[segue identifier] isEqualToString:IDENTIFIER])
    {
        // Assume self.view is the table view
        NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
        // something codes... using indexPath.row
    }
}