Background while modal viewing

I am using the iOS 5 project for storyboards. When introducing a modal view controller, I chose to use a horizontal flip transition. During the transition, the background is black, which is not particularly aesthetic, given the design of my application. How to change background color during transition?

In non-storyboard projects, I managed to change the background color of MainWindow.xib, but since this file is no longer present in storyboard projects, this is not possible. Also, since the entry point to the storyboard is the UINavigationController, there seems to be no property for the background color (I doubt it would change anyway, since the background color I need to change is associated with the window, not the main controller views, since this view controller is essentially upside down to display the modal view controller).

Any help would be greatly appreciated.

+3
source share
1 answer

Go to your AppDelegate and

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

do the following:

window.layer.contents = (id)[UIImage imageNamed:@"IMAGE_NAME.png"].CGImage;

, backgroundColor . ,

+9

All Articles