Can't use custom font in iOS app

前端 未结 6 862
不知归路
不知归路 2021-01-03 10:55

I\'m trying to use custom font for my iOS app. Here is what I do

I added my custom font (m.tff) to Xcode Supporting files directory. Also I create entry called Fonts

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-03 11:20

    Check to see if your [UIFont fontWithName:@"My font" size:15] line returns a UIFont object that is not null.

提交回复
热议问题