Cocoa Touch での iPhone/iPod touch 向けアプリ開発の記録 「BookRemark」App Store で公開中! 今回は、前回説明したような、Table View でセルをタップして、別の画面を出す実際のコードについて。 Table View の中で、あるセルがタップされた時、次のメソッドが呼ばれます。 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; 引数は呼び出された View と、その位置を示します。Table View の基本で見たとおり、indexPath.section でセクション番号、indexPath.row で行番号を取得できます。 このメソッドの実装で、indexPath をもとに新しい画面を開きま