iphone - objective-c : Accessing next cell of a UITableView

标签 iphone objective-c uitableview

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

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

最佳答案

NSIndexPath *newPath = [NSIndexPath indexPathForRow:indexPath.row+1 inSection:indexPath.section];
UITableViewCell *nextCell = [tableView cellForRowAtIndexPath: newPath];

关于iphone - objective-c : Accessing next cell of a UITableView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3620025/

相关文章:

iphone - 我如何在 UIView 手势下检测 UIButton 的 TouchUp 事件

iphone - 最适合移动 Web 的 ASP.NET Ajax 控件库

iphone - 难以解析包含 '\u00' 等字符的响应

objective-c - 性能测试 : sem_t v. s。 dispatch_semaphore_t 和 pthread_once_t 对比dispatch_once_t

objective-c - 如何循环遍历自定义对象的 NSArray

ios - 使用选定的 TableView 项和选项卡栏 Controller 显示 View Controller

ios - Touch ID - 如何进入密码屏幕? - swift

ios - Firebase + swift : Unable to delete rows in tableView

iphone - 如何更改 iPhone SDK 中分组 TableView 中节标题的文本颜色?

ios - 自动续订的应用内购买订阅如何运作?