Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何找到表格视图的索引路径。我想使用 id(一些数据)删除一行,该 id 作为对象添加到我的表视图的可变数组中。现在我有了可以执行删除功能的自定义方法,如何获取索引路径以便我可以执行删除操作?
蒂亚。
我认为这就是您的意思正确吗?:
NSIndexPath *selectedIndexPath = [tableView indexPathForSelectedRow];
如果没有,请详细说明您想要实现的目标。