On some occasions, not every time, when my app presents a modal view controller using presentModalViewController:animated:
with modalTransitionStyle
set to UIModalTransitionStyleFlipHorizontal
the iPhone home screen is visible behind the animation. Most of the time the background is black as expected. There is nothing abnormal where I set up the window
or rootViewController
(a UITabBarController
). I blacked out my app UI but you can see the issue in the screen shot taken with an iPhone 4 while the transition is in progress.
What would cause this? I don't know how to do it even if I wanted this behavior.
EDIT: This screen shot was sent to me by a tester, I haven't repro'ed it myself. They told me it occurred during a particular app session and once it occurred it happened for all transitions. When they quit/relaunched the app it didn't happen again and they haven't seen it since. I'm wondering whether it's something I need to be concerned about (i.e. I can prevent it in code).
EDIT 2: This app does not use IB. All controllers/views are created in code.
UIWindow
at any point maybe explicitly setting that might potentially avoid this but that's pure speculation. – ArvbackgroundColor
(or any other display properties) of the window. I tried to repro it by explicitly setting the window background color toclearColor
(and messed with thetabBarController.view
etc). If I could force this to happen that might give me some insight, haven't found a way to do that yet. – Morphineself.window.backgroundColor = [UIColor whiteColor];
I could be wrong but chances are it was a similar situation with the xibs pre xcode 4.x – Arvself.window.backgroundColor = [UIColor whiteColor];
. The xib stuff was not really relevant. – Arv