相关疑难解决方法(0)

从UITableViewCell引用到父UITableView?

有没有办法UITableView从一个内部访问拥有UITableViewCell

iphone cocoa-touch objective-c

67
推荐指数
4
解决办法
5万
查看次数

使用 UITableViewAutomaticDimension 时如何更改 UitableviewCell 中 UIView 的高度约束

在此输入图像描述

我在 UITableViewCell 中有一个 UIView ,当用户点击“更少/更多”按钮时需要更改其高度

我的代码是

 - (CGFloat)tableView:(UITableView *)tableView       estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return UITableViewAutomaticDimension;
}
Run Code Online (Sandbox Code Playgroud)

objective-c uitableview ios ios-autolayout uitableviewautomaticdimension

5
推荐指数
1
解决办法
1464
查看次数