Home  >  Q&A  >  body text

ios - UITableView的使用

有一个静态的 tableView, 其中有若干Cell, 在其中某个Cell中, 再放入一个 tableView ,这样可以吗?Delegate 和 DataSource 该怎么写呢,活着该避开哪些坑, 请各位指教

PHP中文网PHP中文网2742 days ago290

reply all(4)I'll reply

  • PHPz

    PHPz2017-04-17 18:02:18

    It is easy to cause problems when multiple UIScrollViews are mixed. Nesting of ScrollView (and its subclasses) is not recommended. You can use tableView.headerView and Section.headerView to achieve the required functions

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 18:02:18

    Yes, just like you usually put a view in the cell, and then write the proxy in the inserted tableView file

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 18:02:18

    Static tableView is generally used for relatively simple layouts. Not recommended. Just use code. You can customize a cell and add a tableView. But this is generally not required. It is not recommended to write like this. If you are imagining the expansion function of the address book. You can use tableHeaderView to write.

    reply
    0
  • 迷茫

    迷茫2017-04-17 18:02:18

    If you want to avoid pitfalls, it would be much better to seal the tableView and the tableView in the cell and write them separately

    reply
    0
  • Cancelreply