What is the XCode Interface Builder “Document” Section

后端 未结 1 1828
礼貌的吻别
礼貌的吻别 2021-02-15 07:14

I understand the \"Xcode Specific Label\" section.

What I don\'t understand is the \"Notes\" section. I\'ve played around with it and can\'t see any di

相关标签:
1条回答
  • 2021-02-15 07:41

    It's saving an attributed string with a key of userComments to the storyboard file.

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

    0 讨论(0)
提交回复
热议问题