Kaaseter Kaaseter - 6 months ago 315
Swift Question

Swift - UITableView scroll event

I was wondering how to detect if the

UITableView
is scrolled (up or down).
I want to hide the keyboard when the
UITableView
is scrolled with
self.view.endEditing(true)
.

Thanks in advance

Answer

You can add UIScrollViewDelegate. After that you can implement scrollViewDidScroll method.