我有一个包含五个单元格的UITableView。每个单元格都有一个标签和一个图像。现在使用didSelectRowAtIndexPath,当我点击任何单元格时,会出现一个新视图,其中包含单击单元格中的标签和图像。代码是:UITableView didSelectRowAtIndexPath
OpenMessageViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"OpenMessageVC"];
[self.navigationController pushViewController:controller animated:YES];
OpenMessageViewController是我的新视图,它会在单击单元格时出现。 我在故事板中的OpenMessageViewController中添加了一个标签和图像。如何将OpenMessageViewController的标签文本和图像更改为单击单元格中存在的文本和图像。 谢谢
您的实际问题是什么?你的代码没有问题,除非你的Storyboard实际上并不包含可见的UINavigationController。 – 2014-10-27 10:47:59
我已更新我的问题 – 2014-10-27 10:53:30
查看http://stackoverflow.com/questions/7864371/ios-how-to-pass-prepareforsegue-an-object – 2014-10-27 10:55:36