什么是XCode Interface Builder" Document"部分

时间:2012-12-07 05:58:38

标签: ios xcode interface-builder

我理解“Xcode Specific Label”部分。

>理解的是“注释”部分。我玩过它并且看不到任何可辨别的效果。

任何人都可以解释一下吗?

enter image description here

1 个答案:

答案 0 :(得分:2)

它将一个带有userComments键的属性字符串保存到情节提要文件中。

<attributedString key="userComments">
    <fragment content="These are the comments I entered in the notes section of Interface Builder">
        <attributes>
            <font key="NSFont" size="11" name="LucidaGrande"/>
            <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
        </attributes>
    </fragment>
</attributedString>
但是,我不知道有任何实际用途。不过,能够以编程方式检索它会很好。

相关问题