我在图表视图控制器中显示图像,其中图像从URL呈现为XML文件.它适用于将图像列为滚动视图.现在我想选择一个特定的图像,窗口应该单独显示所选的单元格图像.为此,我需要获得Cell值.如果是这样,我如何获得特定的单元格值并在下一个窗口中将其对应的图像显示为集合视图.
请建议我一个想法.为了更好地理解我在图片下方粘贴了我的故事板当前的外观以及我需要输出的方式.

希望你能理解我的问题.
Vin*_*ini 24
-(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.
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
34187 次 |
| 最近记录: |