I hava a TableView on a Viewcontroller.On the tableview cells of that Tableview I want to add another tableview with table viewcells on it.Is it ppossible to achieve this in ios?
Asked
Active
Viewed 41 times
1 Answers
0
Yes it's possible, take a look at this answer as he explains with details what you should do.
What you can also do is work with section/rows without adding more UITableView.
The first thing that comes to mind is to create a new tableView inside cellForRowAtIndexPath and give it a tag that corresponds to the row of the main TableView.
In case you have multiple sections, you can also add section to it like this section * 1000 + row
And in each cellForRowAtIndexPath you check if theres any tableView with the tag, if there is, just recall it

Community
- 1
- 1

Ricardo Alves
- 642
- 2
- 13
- 34
-
Yes,I have tried this one but not able to get the cells withincells.I have copied the whole code but the delegates of cells inside cells are not being called. – Prez Mar 08 '17 at 09:24
-
you want one dynamic tableView for every cell, or should one different tableView for each cell? – Ricardo Alves Mar 08 '17 at 09:46
-
I want one dynamic tableView for every cell. – Prez Mar 09 '17 at 13:16
-
Updated answer above – Ricardo Alves Mar 09 '17 at 13:55