Custom Font not working in iOS 5

前端 未结 4 638
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 08:30

I have added Avenir-Next-LT-Pro-Demi-Condensed_5186.ttf font in my resources. Also added the same to Fonts provided by application in my info.p

4条回答
  •  没有蜡笔的小新
    2021-01-16 09:16

    Try this ,

    The font name is not the font file name 
    
    Avenir-Next-LT-Pro-Demi-Condensed_5186.ttf is a file name. simply double click the Avenir-Next-LT-Pro-Demi-Condensed_5186.ttf file it will automatically  open the font reader.Get the font name from top of the font reader navigation bar..
    

    enter image description here

    titleLabel.font = [UIFont fontWithName:@"Avenir Next LT Pro" size:10];
    

提交回复
热议问题