swift - UITableViewAutomaticDimension 的最小单元格高度

标签 swift uitableview uitableviewautomaticdimension

是否可以为单元格设置最小高度?我使用动态:

tableView.estimatedRowHeight = 83.0
tableView.rowHeight = UITableViewAutomaticDimension

但是当我的 news title label text 是一行时,我需要为单元格设置最小高度。

最佳答案

您是否尝试过在自定义 UITableViewCellheight >= 60.0 View 中创建约束?

关于swift - UITableViewAutomaticDimension 的最小单元格高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35169125/

相关文章:

ios - 从后台激活时,Firebase 应用程序在启动时崩溃

ios - 如何在协议(protocol)中的可选方法中将枚举作为参数传递

iOS > 8 : issue with UITableViewAutomaticDimension and layoutIfNeeded

ios - 如何在 Swift 中更改 UIPickerView 中的字体大小?

ios - 快速分页电影数据库

ios - UITableView的可重用池如何查看内容

ios - 异步调用后 UITableViewCell 自动行高不起作用

ios - 嵌入了 containerView 的静态单元格上的动态高度

带有一起呈现的动态文本和图像的 iOS UITableView(NSAttributedString + 图像)

ios - UICollectionView 嵌入在 UITableViewCell 中!无法从 tableview 单元格中呈现 viewcontroller!回电