我在 UITableViewCell 中有一个 UIView ,当用户点击“更少/更多”按钮时需要改变它的高度
我的代码是
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewAutomaticDimension;
}
我在 UITableViewCell 中有一个 UIView ,当用户点击“更少/更多”按钮时需要改变它的高度
我的代码是
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewAutomaticDimension;
}