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