-2

我的表中有一些信息是从服务器获取的,我希望在单击一行时将它们显示在我的详细视图中,请您在此实施中帮助我吗?

这是我的 didSelectRowAtIndexPath

TestDetailView *c = [[TestDetailView alloc] init];
c = [_data objectAtIndex:indexPath.row];

 }

提前致谢!

4

1 回答 1

0

我认为你的问题在这里:

TestDetailView *c = [[TestDetailView alloc] init];
c = self.data[indexPath.row];

不应该是:

TestDetailView *c = [[TestDetailView alloc] init];
[c setData:[subComponents objectAtIndexPath:indexPath]];
于 2013-10-22T00:34:45.253 回答