简体   繁体   English

什么是XCode Interface Builder“文档”部分

[英]What is the XCode Interface Builder “Document” Section

I understand the "Xcode Specific Label" section. 我理解“Xcode Specific Label”部分。

What I don't understand is the "Notes" section. 明白的是“注释”部分。 I've played around with it and can't see any discernable effect. 我玩过它并且看不到任何可辨别的效果。

Can anyone explain this? 有谁能解释一下?

在此输入图像描述

It's saving an attributed string with a key of userComments to the storyboard file. 它将一个带有userComments键的属性字符串保存到storyboard文件中。

<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>

I don't know of any practical use of this, though. 不过,我不知道有任何实际用途。 It would be nice to be able to retrieve this programmatically, though. 不过,能够以编程方式检索它会很不错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM