我对如何在 iOS 项目的文本中使用 SF 符号感到困惑。我有一个使用符号的 UIButton,使用UIImage systemImageNamed:
. 我想在另一个视图中显示有关该按钮的消息和一些文本。我认为我应该能够使用该符号的 Unicode 引用,但它不会呈现。我的理解是这些符号在私人使用区域,但我不能让它们使用代码来呈现@"Press the \U0010057C button."
我尝试将 SFSymbolsFallback.ttf 字体文件导入我的项目。
我希望看到呈现的符号,但我得到一个?反而。