[英]how to set tablecell row height automatically based on inner view outlet?
There are 2 things that you need to do:您需要做两件事:
1st thing: Set AutoLayout for it.第一件事:为它设置 AutoLayout。 2nd thing: implement these code:
第二件事:实现这些代码:
self.tableView.rowHeight = UITableViewAutomaticDimension
self.tableView.estimatedRowHeight = 100
You can see more from my project: https://github.com/khuong291/Yelp你可以从我的项目中看到更多: https : //github.com/khuong291/Yelp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.