In iOS4 (4.3 simulator) when I use the font Myriad Pro with the following font method for a cell:
cell.titleLabel.font = [UIFont fontWithName:@"Myriad Pro" size:14];
It looks like this:
In iOS5 (5.0 simulator) when I use the font Myriad Pro with the same font method it looks like this:
Has anyone experienced this behaviour as well (perhaps with other fonts?).
When using +fontWithName:size:
on iOS 5, the font name parameter needs to be the full name of the font file in your app bundle and not just the font family name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With