I have a UITableView instance variable. I want to be able to register my view controller to be the UIScrollViewDelegate for my UITableViewController. I have already tried
UITableView
UIScrollViewDelegate
UITableViewController
tableView.delegate = self;
But when scrolling, my methods
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
don't get called. Any suggestions?
Now UITableViewDelegate conforms to UIScrollViewDelegate !
UITableViewDelegate
(I write this answer because many people are going to find this page googling..)
2.1m questions
2.1m answers
60 comments
57.0k users