Alexey K
Alexey K

Reputation: 6723

UITableView - get notification about scrolling

Is there any way to know, when the UITableView scrolled ? I need something that is the same like scrollViewDidScroll in scrollview.

Upvotes: 3

Views: 870

Answers (1)

Naftali Beder
Naftali Beder

Reputation: 1086

If you set your UITableView's delegate to self, the view controller should call scrollViewDidScroll() when the view is scrolled:

myTableView.delegate = self

This works because UITableView is a subclass of UIScrollView.

Upvotes: 7

Related Questions