search

Home  >  Q&A  >  body text

objective-c - iOS中的tableview的cell与headerview重叠了,咋办?

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

阿神阿神2771 days ago815

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 09:49:17

    Check whether the height of the cell is correct

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:49:17

    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...

    reply
    0
  • Cancelreply