Skip to content

Instantly share code, notes, and snippets.

@matrixfox
Last active August 29, 2015 14:10
Show Gist options
  • Save matrixfox/a71944724f7b8780957d to your computer and use it in GitHub Desktop.
Save matrixfox/a71944724f7b8780957d to your computer and use it in GitHub Desktop.
Xcode 6 Empty Application Template
// Xcode 6 - Empty Application Template
//
// 1. Create a new "Single View Application" template.
// 2. Delete said files "Main.storyboard", "ViewController.h", "ViewController.m".
// 3. Remove the "Main storyboard file base name" entry from "Info.plist" file.
// 4. Open AppDelegate.m, and edit applicationDidFinishLaunchingWithOptions with this snippet.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment