现在有个需求就是要把2个不同状态的订单放在一个页面,因为内容复杂只能使用2个tableview。我的想法就是把2个tableview竖着放在scrollview上,但是tableview挡住了scrollview就不能滑动了。之前有一种实现方法是监听tableview滑到最下面,scrollview滚动到下一个tableview,但是这样实现太不自然了,不能平滑的滚动。请问大家有什么实现的方法吗?谢谢!
PHP中文网2017-04-18 09:27:37
Register multiple types of cells in a tableView and use different cells according to different data sources.
阿神2017-04-18 09:27:37
Two tableviews placed vertically side by side. It is a bit difficult to do this.
I recommend using UICollection for layout. Two orders are two cells. These two cells can be placed vertically side by side. The length can be anything. set up.
黄舟2017-04-18 09:27:37
I found that it is enough to turn off the scrolling of the tableview. Thank you everyone.