The simplest way is to add a UIImageView
to your root window and make sure all of your other views have transparent backgrounds;
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let window=self.window!
let backgroundView=UIImageView(frame: window.frame)
backgroundView.image=UIImage(named: "Background.JPG")!
window.addSubview(backgroundView)
return true
}
or in Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
UIWindow *window=application.windows.firstObject;
UIImageView *imageView=[[UIImageView alloc] initWithFrame:window.frame];
imageView.image=[UIImage imageNamed:@"Background.jpg"];
[window addSubview:imageView];
return YES;
}