2017-04-21 47 views
0

我的英語水平有限,可能難以閱讀,請理解。 我在項目的ToolbarItem控件中使用NSSidebarTemplate圖標。但是每次打開Xcode時,都會丟失,無法使用NSSidebarTemplate。圖中顯示了缺少的結果。打開該項目將有一個彈出框提示,大概意思ToolbarItem圖標損失後設置

文件「Main.storyboard」有一個內部不一致,這是 發現和修復。

我也沒辦法使用這個NSSidebarTemplate,但大多數的其它圖標沒有這樣的問題,如NSActionTemplate正常

Re open the project in Xcode, there are the following problems

回答

0

它來自蘋果公司的模板項目。圖像名稱是NSSidebarTemplate。您可以通過挖掘到故事板或XIB XML看到:

<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSSidebarTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zzz-zzz-zzz"> 

有可能已經在Xcode是由顯示在某些點「未知」映像名稱的改變,但在內部它仍然存在。

這也在這裏討論:The Sidebar Icon image name in OSX