2012-12-07 31 views
9

我瞭解「Xcode特定標籤」部分。什麼是XCode界面生成器「文檔」部分

什麼我不要明白是「註釋」部分。我玩過它並看不到任何可辨別的效果。

任何人都可以解釋這一點嗎?

enter image description here

+0

有關實際使用筆記的想法,請參閱此答案:http://stackoverflow.com/questions/11207088/how-to-add-copyright-information-to-a-nib-file/11208398#11208398 – Alladinian

+0

相關:http://stackoverflow.com/questions/7141717/what-is-the-label-property-under-the-identity-inspector-in-xcode-4 –

回答

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> 

雖然,我不知道這個的任何實際用途。儘管如此,能夠以編程方式檢索這將是很好的。

+1

很奇怪。謝謝! –