Attributed string with custom fonts in storyboard does not load correctly

后端 未结 16 1789
梦谈多话
梦谈多话 2021-01-30 03:35

We are using custom fonts in our project. It works well in Xcode 5. In Xcode 6, it works in plain text, attributed string in code. But those attributed strings set in storyboard

16条回答
  •  有刺的猬
    2021-01-30 04:14

    Met the same problem: the attribute font set for TextView in storyboard didn't work in run time with XCode 6.1 & iOS 8 SDK.

    This is how I solved this issue, might be a workaround for you:

    1. open the attribute inspector of your textview, change text to "Plain"

    2. click on the cross to delete the "wC hR"(red below)

      enter image description here

    3. change text to "Attributed", and then you can set the font and size for your text.

    4. run to check if it works

提交回复
热议问题