views:

64

answers:

1

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

A: 

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

@protocol UITableViewDelegate<NSObject, UIScrollViewDelegate>
drawnonward