Search code examples
ioscocoa-touchios7ios8ios9

How to get dynamically changed font height?


I am trying to change the custom tableviewcell height based on system font height. But i didn't find any api to get system font height.

Note: I can't calculate font height using any cell label as "HeightForRowAtIndexPath" will call before configuring the cell.

Please suggest solution.


Solution

  • Thanks Fellas, Got the solution.

    [UIFont preferredFontForTextStyle:UIFontTextStyleBody].lineHeight;