Is there a function to check what way the table view is scrolled? up/down.
I have an uiView that I need to hide depending on what way is scrolled.
I also have my table view inside an container view.
Thanks
Is there a function to check what way the table view is scrolled? up/down.
I have an uiView that I need to hide depending on what way is scrolled.
I also have my table view inside an container view.
Thanks
Use UIScrollViewDelegate
and
func scrollViewDidScroll(_ scrollView: UIScrollView)
method
UITableViewDelegate is inherited from UIScrollViewDelegate, so you can implement this method
func scrollViewDidScroll(scrollView: UIScrollView) // any offset changes