Delegate Methods in TableView Using Swift
Delegate Methods in TableView Using Swift

Hi Everyone! This blog will let you know about the delegate methods in the table view. If you don’t know much about table view and want to know more about it then you can check my other blog “How to Start with TableView in Swift”.

There are many Delegates methods in swift. So, I divided it into two blogs half of the methods will cover in this blog, and the rest will be covered in my last blog.

didHighlightRowAt
func tableView(_ tableView: UITableView, didHighlightRowAt indexPath: IndexPath)

Tells the delegate that the specified row was highlighted.

didUnhighlightRowAt
func tableView(_ tableView: UITableView, didUnhighlightRowAt…


Delegate Methods in TableView Using Swift
Delegate Methods in TableView Using Swift

Hi Everyone! This blog will let you know about the delegate methods in the table view. If you don’t know much about table view and want to know more about it then you can check my other blog “How to Start with TableView in Swift”.

There are many Delegates methods in swift. So, I divided it into two blogs half of the methods will cover in this blog, and the rest will be covered in my next blog.

What is Delegate in Tableview ?

It deals with the way the table view appears. It contains methods that are used for displaying the table view cells.


Hi everyone! Today I am going to show you step by step guide for “How to start with TableView in Swift?”. If you are new to swift and want to know that what are the various steps which you should follow in the initial phase of learning then you can go and check my blog “Beginners Guide for Swift Programming Language”. So without wasting any time let’s start with TableView in swift.

What is TableView?

TableView is an instance of UITableView which is itself a subclass of UIScrollView. A table view contains a list of TableView cells. …

Sahil Pathania

iOS Application Developer | “Nothing is more beautiful than a beautifully written <code/>”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store