定向深色视图时出现白色边缘? [英] White edge when orienting dark colored view?

查看:51
本文介绍了定向深色视图时出现白色边缘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在玩一个iPhone测试应用,当模拟器向左或向右旋转时,该应用会定向视图。当我的视图具有白色背景时,一切工作都很好,但是当我将视图背景更改为较深的颜色时,随着旋转,我注意到视图周围有白色边缘(1像素)。有没有人遇到过这个问题,或者知道我怎么摆脱它。确实,这可能是模拟器的问题,该问题不会在实际设备上显示,但我认为值得将来参考。

I am just playing with an iPhone test app that orients the view when the simulator is rotated left or right. Everything worked fine when my view had a white background, however when I altered the view background to a darker color I noticed a white edge (1 pixel) around the view as it rotates. Has anyone come across this before or know how I might get rid of it. Indeed it might be an issue with the simulator that won't show on the actual device, but I just thought it worth asking for future reference.

gary

推荐答案

我以前见过类似的东西。

I have seen something similar before..

通过笔尖(。 xib)文件,并确保所有视图均具有适当的深色背景色设置,最值得注意的是包含窗口的nib文件。单击它们并设置背景色。

Go through the nib (.xib) files and make sure that all of the views have an appropriate dark background colour set, most notably the nib file which contains the "window". Click on them and set the background colour.

这篇关于定向深色视图时出现白色边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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