开发者

Remove the white "frame" that occurs when the interface flips?

开发者 https://www.devze.com 2023-04-09 20:09 出处:网络
I have a view with a black background, when I flip the device and the interface flips with it a white pixelated \"frame\" appears around the black view during the animation, and then the frame disappe

I have a view with a black background, when I flip the device and the interface flips with it a white pixelated "frame" appears around the black view during the animation, and then the frame disappears when the interface settles.

This "frame" seem to be part of, or a consequence of the animation, is there any known 开发者_如何学Goway of solving this issue?


Solution by Paul Peelen:

Setting the UIWindow background color to black, in the AppDelegate, solved the problem :)

[[self window] setBackgroundColor:[UIColor blackColor]];
0

精彩评论

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