Contact Us

Use the form on the right to contact us.

You can edit the text in this area, and change where the contact form on the right submits to, by entering edit mode using the modes on the bottom right. 

Oak Ridge, TN, 37830
United States


Background Color To App Window

Wade Cantley

So I figured out this webview thing and wanted to transition using this horizontal flip, but then I found this ugly black background....

Where the heck is this coming from?!

Turns out, this is the default color of the app "window".

So if we go into the AppDelegate.swift we can add some code to change it. 

//  AppDelegate.swift
//  WebViewExperiment
//  Created by Chris Cantley on 6/25/15.
//  Copyright (c) 2015 Chris Cantley. All rights reserved.

import UIKit
import CoreData

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        //Here we change the background color
        self.window?.backgroundColor = UIColor.blueColor()
        return true




Now it is blue.  Of course this opens the door to using different colors and even background images if desired.