搜索
您的当前位置:首页正文

Mac osx 开发-NSButton去掉点击时的背景颜色 -

来源:二三娱乐

自定义的NSButton初始化函数中:(self.cell as! NSButtonCell).highlightsBy = NSCellStyleMask.contentsCellMask

或外部调用(button.cell as! NSButtonCell).highlightsBy = NSCellStyleMask.contentsCellMask

Top