I have a UIView in the UITableViewCell , which needs to change its height when user taps on "less/more" button
My code is
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewAutomaticDimension;
}
Hook items height constraint as IBOutlet and change it in cellForRow like this
and before return cell add