最終更新:2013-01-11 (金) 11:16:51 (2734d)  

UITableViewDelegate
Top / UITableViewDelegate

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UITableViewDelegate

Tasks

Configuring Rows for the Table View

  • tableView:heightForRowAtIndexPath?
  • tableView:indentationLevelForRowAtIndexPath?
  • tableView:willDisplayCell:forRowAtIndexPath?

Managing Accessory Views

  • tableView:accessoryButtonTappedForRowWithIndexPath?
  • tableView:accessoryTypeForRowWithIndexPath? - Deprecated in iOS 3.0?

Managing Selections

Modifying the Header and Footer of Sections

  • tableView:viewForHeaderInSection?
  • tableView:viewForFooterInSection?
  • tableView:heightForHeaderInSection?
  • tableView:heightForFooterInSection?
  • tableView:willDisplayHeaderView:forSection?
  • tableView:willDisplayFooterView:forSection?

Editing Table Rows

  • tableView:willBeginEditingRowAtIndexPath?
  • tableView:didEndEditingRowAtIndexPath?
  • tableView:editingStyleForRowAtIndexPath?
  • tableView:titleForDeleteConfirmationButtonForRowAtIndexPath?
  • tableView:shouldIndentWhileEditingRowAtIndexPath?

Reordering Table Rows

  • tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath?

Tracking the Removal of Views

  • tableView:didEndDisplayingCell:forRowAtIndexPath?
  • tableView:didEndDisplayingHeaderView:forSection?
  • tableView:didEndDisplayingFooterView:forSection?

Copying and Pasting Row Content

  • tableView:shouldShowMenuForRowAtIndexPath?
  • tableView:canPerformAction:forRowAtIndexPath:withSender?
  • tableView:performAction:forRowAtIndexPath:withSender?

Managing Table View Highlighting

  • tableView:shouldHighlightRowAtIndexPath?
  • tableView:didHighlightRowAtIndexPath?
  • tableView:didUnhighlightRowAtIndexPath?

参考