如何在Interface Builder中创建Yosemite风格的统一工具栏? [英] How can I create Yosemite-style unified toolbar in Interface Builder?

查看:68
本文介绍了如何在Interface Builder中创建Yosemite风格的统一工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OS X 10.10+中,如何创建胖标题栏类型的窗口,在窗口标题栏中有一个与其他小工具集成的工具栏,就像在新的Safari和日历中一样?

In OS X 10.10+ how can I create the "fat titlebar" kind of window that has a toolbar integrated with other gadgets in the window's title bar, like in the new Safari and Calendar?

推荐答案


  1. 创建标准工具栏

  2. 当窗口加载设置时:

  1. Create a standard toolbar
  2. When the window loads set:

window.titleVisibility = NSWindowTitleHidden; // or .Hidden in Swift


这篇关于如何在Interface Builder中创建Yosemite风格的统一工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆