简体   繁体   中英

UITableView Inside a UICollectionView

如何在collectionView内设置多个表视图数据?

I think its too complex to add multiple table views inside one UICollectionViewCell. Embedded scroll views is not recommended in terms of UX.

But you can do it by subclassing The UICollectionViewCell and be the delegate/datasources of table views.

You can use only one table with multiple sections instead of multiple tables.

You can achieve this by giving tag to each UITableView in all the UICollectionViewCells and you have to manage all UITableViewDataSource and UITableViewDelegate methods by tags of particular tableView.

I know its complicated but you can try this out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM