我在表视图控制器中显示图像,其中图像从 URL 呈现为 XML 文件。它适用于将图像作为滚动视图列出。现在我想选择一个特定的图像,窗口应该单独显示所选的单元格图像。为此,我需要获取单元格值吗?如果是这样,我如何获取特定的单元格值并在下一个窗口中将其相应的图像显示为集合视图。
Kindly suggest me an idea. For your better understanding i pasted below an image how my storyboard currently looks and how i need an output.
希望你理解我的问题。
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// here we get the cell from the selected row.
UITableViewCell *selectedCell=[tableView cellForRowAtIndexPath:indexPath];
// perform required operation
UIImage * image =selectedCell.image;
// use the image in the next window using view controller instance of that view.
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)