Closed g001613001 closed 7 years ago
I can use UIScrollViewDelegate for detect tableView is dragging. like this: extension CustomerChannelVC: UIScrollViewDelegate{ func scrollViewDidScroll(_ scrollView: UIScrollView) { if 0 >= scrollView.panGestureRecognizer.translation(in: scrollView.superview).y { NotificationCenter.default.post(name: NotificationName.scrollDirectionUp, object: nil ) }else{ NotificationCenter.default.post(name: NotificationName.scrollDirectionDown, object: nil ) } }
}
But, RATreeView can't do this.
so, how to detect RATreeView dragging?
Thanks.
Fixed. treeView.scrollView.delegate = self
I can use UIScrollViewDelegate for detect tableView is dragging. like this: extension CustomerChannelVC: UIScrollViewDelegate{ func scrollViewDidScroll(_ scrollView: UIScrollView) { if 0 >= scrollView.panGestureRecognizer.translation(in: scrollView.superview).y { NotificationCenter.default.post(name: NotificationName.scrollDirectionUp, object: nil ) }else{ NotificationCenter.default.post(name: NotificationName.scrollDirectionDown, object: nil ) } }
}
But, RATreeView can't do this.
so, how to detect RATreeView dragging?
Thanks.