Search code examples
iosuilabel

UILabel - set custom fonts


I want to add GillSans-Bold font to a UILabel. I have set it in the xib file , and I'm also setting it up in my class as follows :

[label setFont:[UIFont fontWithName:@"GillSans-Bold" size:18]];

But , it doesn't seem to work for me. Any suggestions ?


Solution

  • For this to be working I had to add this font in my project directory , and added this font in the Info.Plist file