ios - UITableView的使用
PHP中文网
PHP中文网 2017-04-17 18:00:18
0
4
281

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
PHPzhong

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

大家讲道理

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

Peter_Zhu

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.

迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!