Vipin Saini
Vipin Saini

Reputation: 67

UITableView Inside a UICollectionView

How can I set multiple table view data inside a collectionView?

Upvotes: 0

Views: 1225

Answers (2)

DJ1
DJ1

Reputation: 944

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.

Upvotes: 1

Hossam Ghareeb
Hossam Ghareeb

Reputation: 7123

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.

Upvotes: 3

Related Questions