LoginSignup
1

More than 5 years have passed since last update.

swift xcode7でempty Applicationから作成する

Posted at

swift xcode7でempty Applicationから作成する方法を記載

1.File > New > Project から「Single View Application」を選ぶ

2.ナビゲータエリアから「Main.storyboard」「LaunchScreen.storyboard」を削除する

3.ナビゲータエリアからプロジェクト名を選択して 
General > Deployment info のMain interfaceを空にする
(この時、DeviceにiPadが設定されているとからにできない?ぽいので注意。一旦、iphoneにすると空にできます。 ver 7.2.1)

4.AppDelegate.swiftのapplicationメソッドに以下のコードを追加

AppDelegate.swift
self.window = UIWindow(frame:UIScreen.mainScreen().bounds)
let viewController = ViewController()
self.window?.rootViewController = viewController
self.window?.makeKeyAndVisible()

以上

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1