Storyboard imageview 加tableview

来源:互联网 发布:c语言深度剖析 编辑:程序博客网 时间:2024/05/19 18:15

首先,问题肯定不是imageview在tableview的tablecell里面,或者这个会是我们之后会碰到的问题,但不是我们的初级问题;在网上搜到的都是超高级,超长的解说,什么NIB,什么5.0新特性storyboard,和如何viewcontrol,和写一个简单的tab。

明显,这些都不是我的问题,我的问题很简单,一个界面如何包含一个图片外加一个tableview,布局应该是如何的?
这里写图片描述

最后,还是在国外找到答案

I have a table view in my app and I am trying to add a image view over the top of it (see image below). However whenever I do this the image view is just instantly added to a cell in the table view. Am I not allowed to add an image view to a table view like this?

其实这个鬼老问得挺蠢得,显然也是一个”新手“,无论iOS还是程序,用菜鸟来形容不为过,但是起码人家提的一个很准确的问题,也得到了一个很准确的答案,(我估计,再过20年,国内也无法达到这个水平,等一个generation吧,等我们退了应该可以)
。。。
n个答案后,出了一个答案

I would suggest that you create a UIViewController as your parent view, then create a Container View with an embed segue to your table view controller. Check out my answer here for more details.

details

。。。
所以,这details就是答案,解答的过程,整个编程世界,还有很多很多。

0 0
原创粉丝点击