2016-11-29 77 views

回答

1

我會使用一個委託。

創建你的外部表視圖控制器符合一協議:

func cellHeightChanged(newHeight: CGFloat) { 
    self.cellHeight = newHeight 
    self.tableView.reloadData() 
} 

然後給所述內表中查看到外控制器的引用,並調用此方法時的高度變化。

相關問題