0

我们有这个:

self.refreshControl?.addTarget(self, action: #selector(MyController.userRefresh(refreshControl:)), for: UIControlEvents.valueChanged)

func userRefresh (refreshControl: UIRefreshControl) {
    sync()
}

UIControlEvents为了在 UIRefreshControl 开始旋转之前执行代码,我们是否可以监听另一个事件?

对于valueChanged事件,微调器已经处于活动状态。

4

0 回答 0