开发者

iPhone UIComponents are blurry @1x

开发者 https://www.devze.com 2023-02-27 10:59 出处:网络
We are experiencing a strange blurring effect on some of our app screens.It happens only on 320x480 screens of the iPhone 3x, and not on the iPhone4.It is happening on some UIComponents - text blurrin

We are experiencing a strange blurring effect on some of our app screens. It happens only on 320x480 screens of the iPhone 3x, and not on the iPhone4. It is happening on some UIComponents - text blurring on UILabel, and image blurring on the UIImageView. Any ideas开发者_如何学运维 about what's happening here?

Thanks for your help.


This usually happens when the frames are off by 0.5 pixels. So instead of the label's frame's origin being at (100,200), for example, it is at (100.5, 200). Check how you calculate the frames, and if you are doing any division, make sure you cast the value into an int.

0

精彩评论

暂无评论...
验证码 换一张
取 消