有没有办法知道用户是向上还是向下滚动 tableview?在 swift IOS
问题描述:
我想听向下或向上滚动的 tableview,如果可能,请告诉我.谢谢.
I want to listen tableview scrolled down or up, if is it possible, please let me know. thanks.
答
UITableView
是 UIScrollView
的子类,所以实现
UITableView
is subclass of UIScrollView
so implementing
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
你会知道 UITableView
何时滚动.
you will know when the UITableView
is scrolled.