Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the black 'background color' of iOS apps?

Tags:

ios

swift

I am making a app with a cube animation. There will appear a black background when I swipe to another viewcontroller. Is there any solution for this? enter image description here

More advanced

Thanks for the solution! I dont know if it is possible, but does anyone know if you can put something like a svg image on the window background?

like image 398
Stijn Westerhof Avatar asked Mar 12 '23 16:03

Stijn Westerhof


1 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

}
like image 120
Anbu.Karthik Avatar answered Apr 09 '23 00:04

Anbu.Karthik