2018-03-27T07:00:53Z||2018-03-27T07:03:30Z


代码:

override func viewDidLoad() {
    super.viewDidLoad()
            
    // Refresh control
    refreshControl = UIRefreshControl()
    refreshControl.addTarget(self, action: #selector(refreshFeed(sender:)), for: .valueChanged)
    tableView.addSubview(refreshControl)
}

@objc private func refreshFeed(sender: AnyObject) {
    refreshControl.endRefreshing()
}