I'm facing this problem:
I have a tableView and a customCell, on my custom cell class I set font size and font colors for the labels that I have there, my issue is that in order to calculate the heightForRowAtIndexPath I don't have access to the labels font sizes, what I do in that method create temporary labels with the same text value that I set on the custom cell class and calculate the label height in order to set the heightForRowAtIndexPath height depending on the content but since I don't have the correct font it gives me a different height and I see spaces between each cell, is there any way to solve this?