how to increase cell height dynamically in swift 4

时间:2018-09-04 20:10:54

标签: swift

I am new in swift and I am trying to create a school project. The problem I face is I have multiple cells and I don't know how to increase the cell height. I have searched, but I am not able to understand how to do it.
Thanks for help in advance.

1 个答案:

答案 0 :(得分:-1)

实施以下表格视图方法:

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

//return the size of your cell

    }

如果您的像元高度为190,则只需在此处返回190。