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

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
How to call

(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath


I used

tableView:ableView cellForRowAtIndexPath:indexPath


But its not working.

Can anyone twell me solution?
 

eddietr

macrumors 6502a
Oct 29, 2006
807
0
Virginia
So you're creating a custom tableview? What exactly are you trying to accomplish?

If you take the time and effort to post a little more context, it would make it much easier for people to help you.
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
Are you trying to set the contents of the cell or retrieve the cell itself?

If you are trying to set the contents, you don't use tableView:cellForRowAtIndexPath: directly. It is called as part of the table view data source methods to determine what to show for a particular cell. What you may want to do is call reloadData on your table view, and then put some logic, if needed, into your tableView:cellForRowAtIndexPath: to handle the new content.

If you are trying to retrieve a cell, use cellForRowAtIndexPath: like so:
Code:
tableViewCell = [tableView cellForRowAtIndexPath:indexPath];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.