如何进一步移动refreshControl?我在代码中做到了:
lazy var refresh: UIRefreshControl = {
let refresh = UIRefreshControl(frame: CGRect(x: 50, y: 100, width: 20, height: 20))
refresh.addTarget(self, action: #selector(fetchMatches), for: .valueChanged)
return refresh
}()
tableView.addSubview(refresh)
请注意,这不是UITableViewController,而是将带有tableView的UIViewController拖到segmentedController下面8个点。