2016-02-18 55 views
0

在常見情況下,應用程序將在頂部顯示TITLE,在底部顯示ViewController。但是,我想用左右顯示來製作我的應用程序。NSWindow顯示的建議

使用分割視圖控制器時,標題仍然位於所有視圖的頂部。任何想法如何解決它?或者我應該創建2 NSWindows?順便說一下,我的UI是用故事板設計的。

enter image description here

這裏(消息)是我想要顯示的內容。 enter image description here

回答

1

選擇NSWindow時,在屬性檢查器中,選中統一標題和工具欄以及全尺寸內容視圖。這將使窗口只顯示控件。之後您可以添加NSSplitView以獲得該外觀。

如果有的話刪除任何NSToolBar。

也會改變NSWindow屬性:

self.window.titleVisibility = NSWindowTitleHidden; 
self.window.titlebarAppearsTransparent = YES; 
self.window.backgroundColor = [NSColor whiteColor];