【发布时间】:2017-04-22 05:52:11
【问题描述】:
我正在编写一个 iOS 应用程序。 用户输入电影搜索关键字,它会从 omdbapi.com 获取数据并在表格视图中显示电影。 问题是表格视图单元格没有正确显示。
项目网址: project on onedrive
我尝试使用所有自动布局方法,但都不起作用。
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableViewAutomaticDimension;
}
【问题讨论】:
-
查看这篇文章将有助于stackoverflow.com/questions/40293336/…
-
你能把你的结果图片发给@Atif Shabeer
标签: ios objective-c swift autolayout