2015-11-30 16 views

回答

10

你不能,你可以和應該改變的地方是heightForRowAtIndexPath 但也有對你的問題的其他解決方案,這是很好的解釋here

我鼓勵你檢查第三種解決方案whitch讓行高估計。

0

您可以設置在viewDidLoad中高度的所有單元格

self.tableView.rowHeight = 88.0 

或使用事件heightForRowAt其中u有IndexPath的細胞

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 
     return 88.0 
}