我们有这个:
self.refreshControl?.addTarget(self, action: #selector(MyController.userRefresh(refreshControl:)), for: UIControlEvents.valueChanged)
func userRefresh (refreshControl: UIRefreshControl) {
sync()
}
UIControlEvents
为了在 UIRefreshControl 开始旋转之前执行代码,我们是否可以监听另一个事件?
对于valueChanged
事件,微调器已经处于活动状态。