iOS 10.0 UIRefreshControl not showing indicator

前端 未结 8 1413
庸人自扰
庸人自扰 2020-12-29 06:02

I am using a UITableView Which has a Pull down to refresh function but the spinner for pull down to refresh is not showing up when I call the [self.refreshControl beginRefre

8条回答
  •  半阙折子戏
    2020-12-29 06:41

    Same as @jpros answer but in swift

    if #available(iOS 10.0, *) {
        tableView.refreshControl = refreshControl
    } else {
        tableView.addSubview(refreshControl)
    }
    refreshControl.layoutIfNeeded()
    refreshControl.beginRefreshing()
    

提交回复
热议问题