在每行的tableview里放置一些数据,cell和headerview都是自适应高度的,结果发现当数据量多的时候,headerview就把cell的内容给遮盖住了,怎么办?
上面是cell的高度,是这样写的是不是有问题
下面是cell的headerview是这样写的
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...