How does UITableViewController knows its dataSource and delegate
Posted
by
denniss
on Stack Overflow
See other posts from Stack Overflow
or by denniss
Published on 2012-06-03T22:36:43Z
Indexed on
2012/06/03
22:40 UTC
Read the original article
Hit count: 280
I am following the BigNerdRanch iOS Programming book and I am on this one chapter that deals with UITableViewController. I have been wondering however where UITableViewController
finds out about its delegate
and dataSource
. Currently I have it as
@interface ItemsViewController : UITableViewController <UITableViewDataSource, UITableViewDelegate>
But there is nothing that looks like:
[self.tableView setDelegate:self]
I am just wondering how the UITableViewController finds out about its delegate and dataSource
© Stack Overflow or respective owner