I have got a UITextView inside a UITableViewCell. As the user edits the UITextView text, I resize the UITextView and I need to resize the UITableViewCell and also make sure
hook you constraints properly in cell from top to bottom also don't implement heightForRowAtIndexpath
then
in viewDidLoad
tableView.estimatedRowHeight = 200;
tableView.rowHeight = UITableViewAutomaticDimension;
in data source
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier:CellIdentifier1) as! logTableViewCell
// your code here
cell.layoutSubviews()
cell.layoutIfNeeded()
return cell
}