0

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?

Prez
  • 227
  • 3
  • 12

1 Answers1

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