2017-04-21 49 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