Can I change the black "background color" of iOS apps?

I am creating a cube animation application. When I switch to another view manager, a black background will appear. Is there a solution for this? enter image description here

More advanced

Thanks for the decision! I don't know if this is possible, but does anyone know if you can put something like an svg image in the background of the window?

+4
source share
2 answers

Objective-c

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

self.window.backgroundColor = [UIColor orangeColor]; // customize ur self

}

Swift

  func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {

  self.window!.backgroundColor = UIColor.orangeColor() // customize ur self

}
+3
source

Try changing the background color of the window in AppDelegate

AppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
    appDelegate.window.backgroundColor = [UIColor redColor];
+1
source

Source: https://habr.com/ru/post/1648361/


All Articles