且构网

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

以编程方式更改 UITableView 的高度

更新时间:2023-11-30 15:38:46

你可以观察tableView.contentSize的变化并将值绑定到frame,记住你可能会遇到内存问题,因为表视图不会回收单元格

You can observe tableView.contentSize changes and bind the value to the frame, keep in mind you might run into memory issues since table view won't recycle cells