为什么自定义UIButton图像不在Interface Builder中调整大小? [英] Why does a custom UIButton image does not resize in Interface Builder?

查看:88
本文介绍了为什么自定义UIButton图像不在Interface Builder中调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么自定义UIButton图片不能通过按钮调整大小?

Why does a custom UIButton image not resize with the button?

我在Interface Builder中将其视图模式设置为缩放到填充但不像UIImageView图片,它不尊重该设置。

I set its view mode to Scale to Fill in Interface Builder, but unlike a UIImageView image, it doesn't respect that setting.

我在错误的地方寻找,还是不可能?

Am I looking in the wrong place or is it not possible?

推荐答案

虽然这可能不是你所期待的 - 背景图片缩放。

While this may not be quite what you're after - the background image does scale.

这篇关于为什么自定义UIButton图像不在Interface Builder中调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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