有一个静态的 tableView, 其中有若干Cell, 在其中某个Cell中, 再放入一个 tableView ,这样可以吗?Delegate 和 DataSource 该怎么写呢,活着该避开哪些坑, 请各位指教
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
大家讲道理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
天蓬老师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.
迷茫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