Swift Tutorial: UIRefreshControl with UITableView Swift4

preview_player
Показать описание
Do you have requirement to add a pull to refresh feature in your app. A pull to refresh feature is where user pull the list and it refreshes its contents.
In order to create pull to refresh feature, we have UIRefreshControl in iOS. UIRefreshControl allows us to detect when user pull down UITableView and we can then refresh our UITableView contents. In this video, you will learn how add UIRefreshControl to UITableView and implement pull to refresh feature to it.

Рекомендации по теме
Комментарии
Автор

self.tableView.contentInset = UIEdgeInsets(top: 50, left: 0, bottom: 0, right: 0)
Will allow you to add a bit of white space to the top of the table view so the activity indicator is not visible in the first cell.

MattandShivs
Автор

How to implement load more in footer of table view. In this tutorial refresh controller is added in header.

ahmadfaraz
Автор

You are a life saver. I really appreciate it!

heyimcharlie