当前位置:首页 > 技术心得 > 正文内容

NSButton——设定背景图片Scale

xjtudll12年前 (2014-07-05)技术心得13970

参考资料:
http://stackoverflow.com/questions/5851923/how-to-scale-axes-independently-at-runtime-on-an-nsbutton

代码方式:

NSButton *someButton;

NSButtonCell *someButtonCell = [someButton cell];

   [someButtonCell setImageScaling:NSImageScaleAxesIndependently];

IB方式:
clip_image001

扫描二维码推送至手机访问。

版权声明:本文由鸟的天空发布,如需转载请注明出处。

本文链接:http://xjtudll.cn/Exp/328/

标签: cocoa
分享给朋友:

“NSButton——设定背景图片Scale” 的相关文章

android实现状态栏添加图标的函数

android实现状态栏添加图标的函数,具体如下: private void showNotification() { // 创建一个NotificationManager的引用 NotificationManager notificationManager = (NotificationM...

Protel99SE高级规则设定

Protel99SE高级规则设定

1、Protel99SE高级间距规则 Protel99SE间距规则是在Rules里面设置的,通常我们只是设置整个PCB的间距,实际上我们可以单独设置各类间距,比如覆铜间距,过孔与过孔间距,焊盘到焊盘间距,焊盘到过孔间距等等。 Design->Rules->Routing->Clea...

android bluetoothGatt  :onClientRegistered() - status=133 clientIf=0

android bluetoothGatt :onClientRegistered() - status=133 clientIf=0

参考资料: http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback http://stackoverflow.com/questions/28894111/andro...

USB转串口 漏电给MCU,如何处理

USB转串口 漏电给MCU,如何处理

参考资料: http://bbs.21ic.com/icview-331251-1-1.html http://bbs.21ic.com/icview-1262058-1-1.html https://zhidao.baidu.com/question/1446506599856343620.htm...

RDLC报表:不同的页眉

RDLC报表:不同的页眉

问题描述: RDLC报表,需要首页页眉和后面的页面页眉不同 解决办法: 利用Hidden属性和内置字段PageNumber。适当隐藏某些元素。 则可实现不同的页眉。 例如:某个元素仅第一页显示 参考资料: https://forums.asp.net/t/2031340.aspx?having+...

PHP:Call to undefined function bindtextdomain()

all to undefined function bindtextdomain() bindtextdomain() 是系统函数为什么会出现上面情况 我的是 PHP/5.2.9 (PHP 4, PHP 5) bindtextdomain ? Set...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。