我们可以为具有动态高度的UITableViewCell提供XIB吗?

时间:2017-01-30 14:04:50

标签: ios swift uitableview

我正在尝试为TableView创建一个custom TableView cell multiple XIB ImageText + Video另一个dynamic height。但必须为界面中的XIB预定义高度。

那么如何使用{{1}}为我的UITableViewCell提供XIB?

1 个答案:

答案 0 :(得分:3)

viewDidLoad

中试试这个

yourTableView.estimatedRowHeight = yourTableViewCellHeight yourTableView.rowHeight = UITableViewAutomaticDimension

相关问题