objective-c - 如何实现在一个部分中点击一个 UITableViewCell 导航到多个 UITableViewCells 以获取详细信息?

标签 objective-c ios xcode uitableview uinavigationcontroller

我现在正在学习 iOS 开发中的 UITableView 类,我想在导航到多个 UITableViewCells 的部分中实现点击一个 UITableViewCell,该附件类型用于复选标记,我应该怎么做?请告诉我如何做以获取详细信息,非常感谢为您的帮助!

    Like this picture:http://i.stack.imgur.com/kowdl.jpg

最佳答案

您需要实现 UITableView 委托(delegate)方法- - (void)tableView:(UITableView *)tView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

现在要识别特定的 UITableViewCell,您可以使用 indexPath - indexPath.rowindexPath.section

关于objective-c - 如何实现在一个部分中点击一个 UITableViewCell 导航到多个 UITableViewCells 以获取详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11240967/

相关文章:

ios - 在 iOS 中通过 opencv 或 opengl 拉伸(stretch)图像区域

iOS 可能的线程问题

iphone - indexPath.row-1 是 4294967295

ios - '+entityForName : nil is not a legal NSManagedObjectContext parameter searching for entity name

ios - Swift - UIDatePicker 限制选择天数

ios - 使用 appledoc 为某些特定类生成文档

ios - ImageView 上的平滑线条

ios - imageNamed 在 iOS 7 上返回 nil,但在 iOS 8 上不返回

ios - 为什么 UIView 在 iOS 中重新布局?

ios - 如何获取 Objective C 中特定类的所有已分配实例?