Working with UITableViewDelegate protocol in iOS @techytube
Working with UITableViewDelegate protocol in iOS  @techytube
Uploaded November 2012 | Updated September 2026, 2 weeks ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
techytube.com/author/pavel

The delegate of a UITableView object must adopt the UITableViewDelegate protocol. Optional methods of the protocol allow the delegate to manage selections, configure section headings and footers, help to delete and reorder cells, and perform other actions.

Many methods of UITableViewDelegate take NSIndexPath objects as parameters and return values. UITableView declares a category on NSIndexPath that enables you to get the represented row index (row property) and section index (section property), and to construct an index path from a given row index and section index (indexPathForRow:inSection: method). Because rows are located within their sections, you usually must evaluate the section index number before you can identify the row by its index number.

One very important method is:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
and it used in Master-Detail applications, where we have a Main/Master view which contains a basic table with general information about the items that we want to display, and when we click on any of the items, it takes us to a Detailed view, which contains all the info about the selected item.

For more, please visit Apple's online documnation at:

developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDelegate_Protocol/Reference/Reference.html
Working with UITableViewDelegate protocol in iOSWindows 8 Development - XAML Add ResourceConditional Programming in Objective CWorking with UIActivityIndicatorView class in iOSWindows 8 Development - Editing Snapped View XAMLLinux Archive, Backup And Compress Utility (tar, Gzip, Bzip2, 7zip, Zip etc.) Part - 3SSDT Schema CompareHow to create a custom cell programmatically in iOSMemory management in Objective-CAn introduction to developing for iOSASP.NET - Page Life CycleVMWare vCenter Orchestrator
techytube |

Working with UITableViewDelegate protocol in iOS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER