0

How to handle table view inside another table view with height as UITableViewautomaticdimension ? The content inside the inner tableview is dyanamic

Renjish C
  • 49
  • 6
  • you can create separate classes by defining protocols for both tableview's delegate and dataSource. In this manner, you will easily understand and will stay away from complexity. – Majid Bashir Jul 10 '18 at 04:27
  • If you must use nested tableviews (and you might want to re-think that approach) You will need to compute a reasonable value for the desired height for the inner tableview based on the number of rows in it and then set a height constraint on the inner tableview – Paulw11 Jul 10 '18 at 04:49
  • 2
    Why put a table inside each row? Just use one table. Use different sections. – rmaddy Jul 10 '18 at 04:49

1 Answers1

1

Please use different section instead of nested tableView.It may helps to you.Thank you

Sanjukta
  • 1,057
  • 6
  • 16