Search code examples
iphoneobjective-ciosuiinterfaceorientation

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


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 way of solving this issue?


Solution

  • Solution by Paul Peelen:

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

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