0

I had an application, in which I'm setting a label in custom cell according to the content. I do that with this code:

if(condition)
{ 
  [cell.dtlsnameLabel setFont:[UIFont fontWithName:@"Calibri-Bold" size:12]];
}
else
{
  [cell.dtlsnameLabel setFont:[UIFont fontWithName:@"Calibri" size:12]];
}
[cell.dtlsnameLabel setText:@“dghgshdg”];

But it is not working correctly. Can anybody point me where I am going wrong?

Amin Negm-Awad
  • 16,582
  • 3
  • 35
  • 50
hacker
  • 8,919
  • 12
  • 62
  • 108

2 Answers2

0

Please read below link contain then some idea got it:

http://www.ifans.com/forums/threads/how-to-custom-font-on-springboard.97478/

Bhadresh Kathiriya
  • 3,147
  • 2
  • 21
  • 41
0

Your app is crashing because Calibri and Calibri-Bold font is not available in iOS by default. You have to add this fonts. To know, how to add custom font in your app: Click here

Community
  • 1
  • 1
Kumar
  • 1,882
  • 2
  • 27
  • 44