自定义UIButton映像在iphone OS 4.0中减少(缩小) [英] custom UIButton image is getting reduced (shrinked) in iphone OS 4.0

查看:118
本文介绍了自定义UIButton映像在iphone OS 4.0中减少(缩小)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临着非常奇怪的问题。

I am facing very strange issue.

当我在iPhone OS 3.2中运行我的应用程序时,我为自定义UIButton设置的图像看起来像:(见附图。)但是当我试图用iPhone OS 4.0运行相同的项目时,图像被更改。

When I was running my app in iPhone OS 3.2 the image which i have set for custom UIButton was looking like : (see attached image.) But when i tried to run the same project with iPhone OS 4.0 the image is changed.

替代文字http://grab.by/5mes

alt text http://grab.by/5met

任何人都可以搞清楚,有什么问题。
我也尝试设置背景图片而不是setImage。但结果是一样的。

Can anybody figure it out, what 's the issue. I also tried to set background image instead of setImage. But result is same.

3.2&在它看起来很好但在4.O之前,图像会像我附加的图像一样在同一个自定义按钮中收缩。

for 3.2 & before its looking fine but in 4.O the image is shrinked in the same custom button everywhere like the image i have attached.

???

推荐答案

您可以查看您正在设置为UIButtons的图像吗?
请确保图片不应包含空白边框。

can you check with images those you are setting to UIButtons. Please make sure images should not contains blank borders.

这篇关于自定义UIButton映像在iphone OS 4.0中减少(缩小)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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