Storyboard imageview 加tableview

首先,问题肯定不是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
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

avi9111

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值