テーブルビューのためのテーブルセル(行オブジェクト)を供給する
– tableView:heightForRowAtIndexPath:– (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *) indexPath- indexPathで示される行のインデントレベルを指定する(サブディレクトリの表示等に使用)
– tableView:willDisplayCell:forRowAtIndexPath:
アクセサリビューを管理する
– tableView:accessoryButtonTappedForRowWithIndexPath:– tableView:accessoryTypeForRowWithIndexPath:Deprecated in iPhone OS 3.0
行の選択を管理する
– (NSIndexPath *)tableView:(UITabelView *) tableViewwillSelectRowAtIndexPath:(NSIndexPath *)IndexPath選択する前の動作を実装する。ex.先頭行であれば選択を拒否する(return nil;)、そうでなければ選択を許可する(return indexPath)。-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSUInteger row = [indexPath row];if (row == 0) return nil;
return indexPath;}– (Void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)IndexPath選択した後の動作を記述する。– tableView:willDeselectRowAtIndexPath:– tableView:didDeselectRowAtIndexPath:
セクションのヘッダ/フッタを変更する
– tableView:viewForHeaderInSection:– tableView:viewForFooterInSection:– tableView:heightForHeaderInSection:– tableView:heightForFooterInSection:
テーブルの行を編集する
– tableView:willBeginEditingRowAtIndexPath:– tableView:didEndEditingRowAtIndexPath:– tableView:editingStyleForRowAtIndexPath:– tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:– tableView:shouldIndentWhileEditingRowAtIndexPath:
0 件のコメント:
コメントを投稿