views:

48

answers:

1

How can I access (to change the imageView.image) the next cell of my UITableView given that I already have:

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

+2  A: 
NSIndexPath *newPath = [NSIndexPath indexPathForRow:indexPath.row+1 inSection:indexPath.section];
UITableViewCell *nextCell = [tableView cellForRowAtIndexPath: newPath];
Max Seelemann
Shouldn't that be cellForRowAtIndexPath:newPath?
Peter DeWeese
Yeah, it should
wierddemon
Rigth thx, fixed it.
Max Seelemann