Tantan Fu

Jun 04, 2015

Xcode新建Empty Application

Create a new empty application in XCode 6
  1. Create a new project
  1. Select the “Single View Application” template
  1. Delete the the files Main.storyboard, ViewController.h, ViewController.m
  1. Go into your project settings (Command+1, then click on the project name at the top), and delete the text “Main” under “Main Interface”
  1. Open AppDelegate.m and add in the missing window code. Your application:didFinishLaunchingWithOptions: method should look like:

for swift:

Copyright © 2024 Tantan Fu