objective-c - iOS中的tableview的cell与headerview重叠了,咋办?
阿神
阿神 2017-04-18 09:47:17
0
2
759
  • 在每行的tableview里放置一些数据,cell和headerview都是自适应高度的,结果发现当数据量多的时候,headerview就把cell的内容给遮盖住了,怎么办?

上面是cell的高度,是这样写的是不是有问题
下面是cell的headerview是这样写的

阿神
阿神

闭关修行中......

reply all (2)
PHPzhong

Check whether the height of the cell is correct

    洪涛

    The problem has been solved. It turns out that it is not a code problem, but a mechanism problem of iOS. You cannot put too many things in the header in the tableview, because every time the header view slides to the bottom, the cell view content will be displayed. There is too much content in the header on my side. When it slides to the bottom, the content is still not ended, causing the content of the cell to be hidden inside.
    Solution: You can take a look at this guy’s method
    http://blog.csdn.net/hardwork...

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!