cellForRowAtIndexPath
このイディオムは"Dynamic Prototypes"でも"Static Cells"でも使えるはずなのだが、実際には"Static Cells"では以下の例外が発生してしまう。
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
これだが、なんてことは無いcellForRowAtIndexPath:メソッドでデリゲートのindexPathに合わせたUITableViewCellが取得できるのだった。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell* cell = [tableView cellForRowAtIndexPath:indexPath]; //Static Cellsとして生成したセルが順に取得できる }
まだまだ修行が足りないなぁ。