Swift:向下移动refreshControl

时间:2017-02-22 15:01:22

标签: swift uikit

如何进一步移动refreshControl?我在代码中做到了:

enter image description here

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个点。

0 个答案:

没有答案