如何将图像添加到表视图控制器中? [英] How Can I Add Images Into The Table View Controller?

查看:96
本文介绍了如何将图像添加到表视图控制器中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问我在故事板上工作我想在表格视图中为每个ceel点击内容添加图像视图...



例如

如果我点击第一个单元格它导航到其他displayview控制器但我想在显示视图控制器中它会显示一个独特的图像...

怎么可能??

第一个细胞=鸡蛋

第二个细胞=洋葱等等

如果我点击卵细胞它将显示蛋图像和副反之亦然...

i want to ask that i am working in story board i want to add image view to each content of ceel click in table view...

for example
if i click on 1st cell it is navigating to other displayview controller but i want that in display view controller it will show a unique image...
how is it possible??
1st cell= eggs
2nd cell= onions and so on
if i click on egg cell it will show eggs images and vice versa...

推荐答案

推荐这个网站它可能会得到你的解决方案



http://stackoverflow.com/questions/5943280/need-help-adding-array-to-a -tableview [ ^ ]



https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/ TableViewCells.html#// apple_ref / doc / uid / TP40007451-CH7 [ ^ ]



< a href =http://www.apeth.com/iOSBook/ch21.html> http://www.apeth.com/iOSBook/ch21.html [ ^ ]
refer this site it may get your solution

http://stackoverflow.com/questions/5943280/need-help-adding-array-to-a-tableview[^]

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html#//apple_ref/doc/uid/TP40007451-CH7[^]

http://www.apeth.com/iOSBook/ch21.html[^]


这篇关于如何将图像添加到表视图控制器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆