【发布时间】:2012-05-01 17:21:18
【问题描述】:
我有一个包含许多单元格的 UITableView,所有单元格都进入一个 xib 视图,我在那个 xib 视图中有 2 个按钮 - 向上、向下。 我想要做的是在按下这些按钮之一时跳转到下一个/后退单元格内容,内容视图需要更改,如 Mail.app、Reeder 应用程序等......
这是我尝试做的,但没有成功:
NSIndexPath *currentPath = [tipsGuideViewTv indexPathForSelectedRow];
NSIndexPath *nextPath = [NSIndexPath indexPathForRow:indexVariable.row+1 inSection:indexVariable.section];
[self.navigationController popToViewController:nextPath animated:YES];
我在网上搜索解决方案,但我没有找到我的意思。 有人知道怎么做吗?
谢谢。
【问题讨论】:
-
我认为你的意思是使用 currentPath 而不是 indexVariable
标签: objective-c uitableview ibaction nsindexpath