如何跳到 DetailViewController 中的下一行?就像在邮件应用程序中一样
我将 indexPath 从 MasterViewController 传递到 DetailViewController,然后我为下一行创建了一个新的 indexPath:
NSIndexPath * newIndexPath = [NSIndexPath indexPathForRow:indexPath.row+1 inSection:indexPath.section];
我也找到了这个解决方案
How to jump to the next row in detailview
,但这只是描述,如何从MasterViewController跳转。
最佳答案
scrollToRowAtIndexPath:atScrollPosition:animated:
可以在详细信息 View 的表格 View 上调用上述方法,使其滚动到新行
如果您只想选择下一行..您可以使用索引路径显式调用 TableView didSelectRow
的委托(delegate)方法。
关于ios - 如何跳转到详细 View 的下一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19230450/