Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilx.mac

macrumors member
Original poster
Mar 10, 2009
63
0
hi there,

is it possible to call the the tableview delegate method 'cellForRowAtIndexPath' outside the delegate <UITableViewDelegate>. I tried using "[self.tableView cellForRowAtIndexPath:newpath];" but its not calling that method. also its not showing any error. What i am doing wrong? Is that not possible?

thanks in advance!
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
There are two methods named cellForRowAtIndexPath. One is in the UITableView dataSource delegate protocol and the other is in UITableView. It is certainly possible to call either one.

Calling the one in the delegate protocol is probably incorrect though. Normally only the table calls that method and your code returns the cell for that row.

Calling the one in the table may return nil.

Why do you want to call this method?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.