search

Home  >  Q&A  >  body text

ios - UIscrollview嵌套uitableview类似于网易新闻,滑动会卡顿或者崩溃。

scrollview嵌套两个tableview,滑动卡顿。

先描述一下情景,一个父VC两个子VC,在父VC的view上添加了一个scrollview,然后在scrollview上添加了两个子VC上的tableview。

tableview放到两个子VC里主要是为了网络处理方便,但是现在滑动的时候特别卡,FPS降的很低,卡的厉害了就崩溃了,这个该怎样处理,有知道的吗?

PS:滑动手势不冲突。

伊谢尔伦伊谢尔伦2772 days ago799

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-18 09:08:56

    Please learn how to use UIPageViewController.
    In addition, there are many mature implementations of the NetEase News control on github, so there is no need to implement it yourself.

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:08:56

    Use time profile to see where there are time-consuming operations.

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:08:56

    I can only say that the idea is fine, the problem should lie in your specific implementation.

    reply
    0
  • Cancelreply