目标C:访问UITableView的下一个单元格

wie*_*mon 2 iphone objective-c uitableview

我如何访问(更改imageView.image)我已经拥有的UITableView的下一个单元格:

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

Max*_*ann 6

NSIndexPath *newPath = [NSIndexPath indexPathForRow:indexPath.row+1 inSection:indexPath.section];
UITableViewCell *nextCell = [tableView cellForRowAtIndexPath: newPath];
Run Code Online (Sandbox Code Playgroud)

  • 如果下一个单元格位于不同的部分,该怎么办? (2认同)