I'm practicing with TableViewController
and custom TableViewCell
. I have made a question list & after clicking Show button it shows the question's options like this.
but removing spacing of question list view from above image I have wrote this code
-(void)viewWillAppear:(BOOL)animated{
self.tableView.estimatedRowHeight = 40.0;
self.tableView.rowHeight = UITableViewAutomaticDimension;}
and the output comes like this before and after clicking Show button.
but I'm trying to make my output with dynamically manageable the row height after clicking the Show button.
Constraints :
NOTE: I have gone through Using Auto Layout in UITableView for dynamic cell layouts & variable row heights
But haven't resolved my problem.
Thanks.