Question

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

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?

Was it helpful?

Solution

Now UITableViewDelegate conforms to UIScrollViewDelegate !

(I write this answer because many people are going to find this page googling..)

OTHER TIPS

UITableViewDelegate will implement UIScrollViewDelegate protocol also.

This is officially unsupported. UITableView and UIWebView do not expose their internally managed scrollviews.

You can descend into the subview hierarchy and make undocumented calls, but that's not recommended, as it's officially prohibited and can break under future OS versions if the underlying (undocumented) API changes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top