I have a TableView
that its cell contains a second TableView
(Nested TableView
).
Inner tableView shows comments that have variable cell height. Calculate this height with UITableView.automaticDimension
.
But main tableView cannot calculate it's cell height properly.
Main tableView use UITableView.automaticDimension
for calculating cell height. but innerTableView doesn't show in the main tableView.
Asked
Active
Viewed 205 times
0

Bappaditya
- 9,494
- 3
- 20
- 29

Mohammad Hossein
- 107
- 11
-
don't do nesting, it's really hard, use single tableview with multiple section – SPatel Dec 29 '18 at 06:23
-
if possible: provide your expected ui – SPatel Dec 29 '18 at 06:24
-
My test project share in comments of next answer. – Mohammad Hossein Dec 29 '18 at 07:05
-
if use section instead of Nested TableView, my viewController will be Massive because my tableView has 19 sections! – Mohammad Hossein Dec 29 '18 at 07:06
-
@SPatel Download sample project: https://www.dropbox.com/s/woieoi71t5kt66d/NestedTableViewTest%202.zip?dl=0 – Mohammad Hossein Dec 29 '18 at 09:07
-
@SPatel Can you help me? – Mohammad Hossein Jan 03 '19 at 14:55
-
https://www.dropbox.com/sh/mxdgw3sibmpe7sb/AAAPp_SGeAKjI9TUMBsK3gKba?dl=0 – SPatel Jan 04 '19 at 05:04
1 Answers
-1
My test project download link: dropbox.com/s/woieoi71t5kt66d/NestedTableViewTest%202.zip?dl=0

Mohammad Hossein
- 107
- 11