【问题标题】:Why each font in customFonts tag is a mutable array?为什么 customFonts 标签中的每个字体都是可变数组?
【发布时间】:2015-05-04 09:54:44
【问题描述】:

很长一段时间以来,我都对任何故事板文件背后的 XML 感到好奇。我试着去理解它的每一部分。

这次我想知道这个:

<customFonts key="customFonts">
    <mutableArray key="FontName-Bold.otf">
        <string>FontName-Bold</string>
    </mutableArray>
    <mutableArray key="FontName.otf">
        <string>FontName</string>
        <string>FontName</string>
        <string>FontName</string>
        <string>FontName</string>
        <string>FontName</string>
        <string>FontName</string>
        <string>FontName</string>
    </mutableArray>
</customFonts>

为什么它是一个可变数组?为什么第二种字体出现很多,而第一种字体却只有一个?

【问题讨论】:

    标签: xml xcode uistoryboard xcode-storyboard


    【解决方案1】:

    情节提要中使用字体"FontName.otf" 的每个控件都会出现一次&lt;string&gt;FontName&lt;/string&gt;。您是否只有一个带有"FontName-Bold.otf" 的控件,而有 7 个使用常规字体的控件?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-06
      • 1970-01-01
      • 2018-02-19
      • 2021-09-23
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多