Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 表视图单元格动态高度展开,但显示空视图_Ios_Swift_Uitableview_Autolayout - Fatal编程技术网

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