2012-12-07 26 views
9

Tôi hiểu phần "Nhãn cụ thể Xcode".Trình tạo giao diện Xcode "Tài liệu" Mục

Điều tôi không hiểu là phần "Ghi chú". Tôi đã chơi xung quanh với nó và không thể nhìn thấy bất kỳ hiệu ứng rõ rệt nào.

Bất cứ ai có thể giải thích điều này?

enter image description here

+0

Để biết ý tưởng sử dụng thực tế các ghi chú, hãy xem câu trả lời này: http://stackoverflow.com/questions/11207088/how-to-add-copyright-information-to-a-nib-file/11208398#11208398 – Alladinian

+0

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

Trả lời

2

Nó tiết kiệm một chuỗi gán với khóa userComments đến tập tin kịch bản này.

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

Tôi không biết cách sử dụng thực tế điều này. Nó sẽ là tốt đẹp để có thể lấy này lập trình, mặc dù.

+1

Rất lạ. Cảm ơn! –

Các vấn đề liên quan