什么是XCode接口生成器“文档”?部分 [英] What is the XCode Interface Builder "Document" Section

查看:138
本文介绍了什么是XCode接口生成器“文档”?部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我理解Xcode特定标签部分。

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

任何人都能解释一下吗?

推荐答案

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

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.

这篇关于什么是XCode接口生成器“文档”?部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆