Row Height of UITableView Custom Cell doesn't update, Swift iOS8

2.7k Views Asked by At

I have created a UITableView Custom Cell in the Storyboard in Xcode 6.4 in iOS 8. When I change the row height in the Size Inspector enter image description here of the Storyboard nothing happens to the custom cells of my UITableView in the App.

3

There are 3 best solutions below

2
Alexey Pichukov On BEST ANSWER

You can update it with override this method in your TableViewController:

override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
    return 55
}
0
Brayden G On

In this method of your tableview controller:

override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath?) -> UITableViewCell?

Make sure to add this line:

cell.height = yourHeight
0
Anıl Sözeri On

You can adding Table View Cell Prototype in Table View on Storyboard and dragging bottom your Prototype Cell and you can get height cell what do you want.