Home > other >  How can I add a tableViewCell within another TableViewCell?
How can I add a tableViewCell within another TableViewCell?

Time:07-21

I need to implement a cell inside of another cell, is it possible in any way? Or should I just find another way? thanks

CodePudding user response:

Find another way. I don't know what exactly you want to do, but maybe modify the headerView for your section (kind of like a cell) and use the cells within that section as your sub-cells.

CodePudding user response:

As it’s been stated above, I would strongly suggest finding another way. Without knowing more details about what exactly it is you’re trying to accomplish, it’s hard to give you another solution but I ran into something similar last year. It’s gets extremely messy and it does not scale well, especially when using a lot of dynamic data. Also, when using UIKit, I think there is a limitation of having a dynamic table cell inside another table cell, which limits your use cases dramatically. If you provide some more details on what it is you’re trying to accomplish, perhaps we can point you towards a better solution.

  • Related