2012-12-07 12 views
9

Capisco la sezione "Etichetta specifica Xcode".Che cos'è la sezione "Document" di XCode Interface Builder

Cosa I non capire è la sezione "Note". Ho giocato con esso e non vedo alcun effetto percepibile.

Qualcuno può spiegare questo?

enter image description here

+0

Per un'idea di un uso pratico delle note, vedere questa risposta: http://stackoverflow.com/questions/11207088/how-to-add-copyright-information-to-a-nib-file/11208398#11208398 – Alladinian

+0

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

risposta

2

Si tratta di salvare una stringa attribuito con una chiave di userComments al file 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> 

Non so di alcun uso pratico di questo, però. Sarebbe bello poterlo recuperare a livello di programmazione, però.

+1

Così strano. Grazie! –

Problemi correlati