search

Home  >  Q&A  >  body text

ios - 想把2个tableview竖着放在scrollview上

现在有个需求就是要把2个不同状态的订单放在一个页面,因为内容复杂只能使用2个tableview。我的想法就是把2个tableview竖着放在scrollview上,但是tableview挡住了scrollview就不能滑动了。之前有一种实现方法是监听tableview滑到最下面,scrollview滚动到下一个tableview,但是这样实现太不自然了,不能平滑的滚动。请问大家有什么实现的方法吗?谢谢!

高洛峰高洛峰2889 days ago339

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:27:37

    Register multiple types of cells in a tableView and use different cells according to different data sources.

    reply
    0
  • 阿神

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

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:27:37

    I found that it is enough to turn off the scrolling of the tableview. Thank you everyone.

    reply
    0
  • Cancelreply