Pull to Refresh control

Thomas Mak wrote at 2021-04-18.

#ios

if #available(iOS 10.0, *) {
    tableView.refreshControl = UIRefreshControl()
    tableView.refreshControl?.addTarget(self, action: #selector(fetchData), for: .valueChanged)
}


Documentation

Comments

no comments yet.