0
プログラムでtableViewCell
の高さを変更したい場合は、 どうすればいいですか?tableViewCellの行の高さを設定する方法
私のtableView例: - あなたのViewControllerで
プログラムでtableViewCell
の高さを変更したい場合は、 どうすればいいですか?tableViewCellの行の高さを設定する方法
私のtableView例: - あなたのViewControllerで
を経由して行の高さを設定します。
tableView.rowHeight = 88.8
また、実装することによって、個々の行の行の高さを設定することができます。
をfunc tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 0 {
return 88.0
}
return 44.0
}
[ストーリーボードの[カスタムセル行の高さ]設定が重複している可能性がありますonding](http://stackoverflow.com/questions/8615862/custom-cell-row-height-setting-in-storyboard-is-not-responding) – Honey