Skip to content

Instantly share code, notes, and snippets.

@cyle
Created June 9, 2015 19:05
Show Gist options
  • Save cyle/f65c179605048f469c01 to your computer and use it in GitHub Desktop.
Save cyle/f65c179605048f469c01 to your computer and use it in GitHub Desktop.
creating a new empty xcode application project
  1. Create a new project in Xcode.
  2. Select the "Single View Application" template.
  3. Once created, delete the the files Main.storyboard, ViewController.h, ViewController.m
  4. Go into your project settings (Command+1, then click on the project name at the top), and delete the text "Main" under "Main Interface".
  5. Open AppDelegate.m and add in the missing window code. Your application:didFinishLaunchingWithOptions: method should look like:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    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