Swift Question

How to set tableViewCell's Rows Height

I would like to programmatically change my

tableViewCell
's Height,
How can i do so?

My TableView Example

thanks a lot ! :)

Answer

This should work as well :

override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat
    {
        return 100.5; //Put the value that you want
    }
Comments