Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set scrollView delegate from a UITableView?

I have a UITableViewController that contains a tableView. I want to set its scrollView delegate to self, but I am not sure how to do that? if i call

self.tableView.delegate = self;

It will set the UITableViewDelegate to self, and not the UIScrollViewDelegate

like image 459
Sheehan Alam Avatar asked May 28 '10 22:05

Sheehan Alam


1 Answers

A table view delegate is a scroll view delegate, so you have already set it.

@protocol UITableViewDelegate<NSObject, UIScrollViewDelegate>
like image 106
drawnonward Avatar answered Sep 18 '22 20:09

drawnonward