When adding a table view the TableViewDelegateProtocol's optional functions can be implemented. 

  • tableView:didDeselectRow:andSection: It is invoked when the specified row is deselected.
  • tableView:didHighlightRow:andSection: It is invoked when the specified row is highlighted.
  • tableView:didSelectRow:andSection: It is invoked when the specified row is selected.
  • tableView:didUnhighlightRow:andSection: It is invoked when the specified row is unhighlighted.
  • tableView:estimatedHeightForRow:andSection: Returns the estimated height of a row in a specified location.
  • tableView:heightForRow:andSection: Returns the height to use for a row in a specified location.
  • tableView:shouldHighlightRow:andSection: Returns if the specified row should be highlighted.
Did this answer your question?