LaunchScreen.xib not displaying my custom font

前端 未结 2 1872
猫巷女王i
猫巷女王i 2020-11-30 07:25

I\'m using a label to display text with my custom font on LaunchScreen.xib. My custom font shows up fine in the Interface Builder, but when I test it on my iPhone the font r

2条回答
  •  爱一瞬间的悲伤
    2020-11-30 07:57

    A quick workaround is to use an UIImageView and have your text as UIImage on it, literally a picture of your text as .png / .jpeg or similar.

    Note: It may take some time before you can see the image, I had to clean the Build Folder and reinstall the app a couple of times in order to see the image.

    Another note: If you want to support multiple languages with different texts you will need to have different images for each language using this approach.

提交回复
热议问题