图像在UIButton上模糊 - 但在UIImageView时不会 [英] Image blurring on a UIButton - but not when UIImageView

查看:111
本文介绍了图像在UIButton上模糊 - 但在UIImageView时不会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在UIButton backgroundImage属性中使用的图像有点奇怪。正如你从图片中看到的那样,前景图像(在UIImageView中)更清晰,而背景图像则模糊不清 - 这是UIButton上的图像。

I have a bit of an odd problem with an image I'm using in a UIButton backgroundImage property. As you can see from the picture, the foreground image (in an UIImageView) is much clearer, whereas the background one, is blurred and not as good looking - this is a image on a UIButton.

想法?要尝试的事情?任何想法,将不胜感激。我在IB中做这一切。

Thoughts? Things to try? Any ideas would be appreciated. I'm doing this all in IB.

推荐答案

Retina而不是视网膜文件大小并不完全是双倍。让设计师了解情况......

Retina and not retina file sizes were not exactly double. Keep your designers informed guys...

这篇关于图像在UIButton上模糊 - 但在UIImageView时不会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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