且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

动态调整UITableViewCell的大小以适应内容

更新时间:2023-02-09 18:49:07

您可以继承UITableViewCell并在方法calc或设置高度。但是,必须在界面构建器的属性检查器中设置单元的标识。
You can subclass UITableViewCell and in the method calc or set the height. But you must set the Identity of the cell in the Attribute inspector in the interface builder.