LoginSignup
11
10

More than 5 years have passed since last update.

xcodeでstoryboardを使わない開発

Last updated at Posted at 2016-01-22

single view applicationを選択し、sotyboardを削除する。

その後、info.plistのstoryboradの欄を空白にする

AppDelegate.swift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
        var window: UIWindow?

        func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

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

        return true

    }

上記のように記述するとstoryboardなしで開発を始められる

11
10
0

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
11
10