Become UIScrollViewDelegate delegate for UITableView

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2009-10-23T19:07:28Z Indexed on 2010/03/21 13:21 UTC
Read the original article Hit count: 537

I have a UITableView instance variable. I want to be able to register my view controller to be the UIScrollViewDelegate for my UITableView controller. 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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch