Ios 表视图单元格动态高度展开,但显示空视图
此处表格视图单元格高度已展开,但Ios 表视图单元格动态高度展开,但显示空视图,ios,swift,uitableview,autolayout,Ios,Swift,Uitableview,Autolayout,此处表格视图单元格高度已展开,但标签内容视图未正确显示,但按钮动作在视图的底部位置触发有人能帮我解决这个问题吗 使用的代码是 self.cancelOrderTableView.estimatedRowHeight = 44.0 self.cancelOrderTableView.rowHeight = UITableView.automaticDimension func tableView(_ tableView: UITableView, estimatedHeightForRowA
标签
内容视图未正确显示,但按钮动作
在视图的底部位置触发
有人能帮我解决这个问题吗
使用的代码是
self.cancelOrderTableView.estimatedRowHeight = 44.0
self.cancelOrderTableView.rowHeight = UITableView.automaticDimension
func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
return 300
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableView.automaticDimension
}
单元格中的其他标签是否具有固定高度?是的,除彩色标签@KeshuRaimake sure numberOfLines=0外,所有标签都具有固定高度,标签和提交按钮被限制在单元格底部。另外,删除UILabel上的高度限制。是的,已经完成,但它仍然显示空白,当我在视图中单击按钮位置时,它工作,但在视图中不显示@keshurait's visible now@Fogmeister