I am sure that I am missing something really simple, but I just can't get it to work.
I will try to explain better what I am doing to try to help others if they have this same issue.
This was my function:
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return (count * 40 + 75) as CGFloat
}
The above function doesn't work. Thanks to the help I received, I found that this is the way to do it:
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return CGFloat(count * 40 + 75)
}
Thanks!