回答編集履歴

1

修正

2016/07/13 13:07

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -3,3 +3,55 @@
3
3
 
4
4
 
5
5
  ![u](a1d4dc54d4c875dc1a643d3f1fa6218a.png)
6
+
7
+
8
+
9
+ Storyboardコードでの指定
10
+
11
+ ---
12
+
13
+
14
+
15
+ ```swift
16
+
17
+ import UIKit
18
+
19
+
20
+
21
+ @UIApplicationMain
22
+
23
+ class AppDelegate: UIResponder, UIApplicationDelegate {
24
+
25
+
26
+
27
+ var window: UIWindow?
28
+
29
+
30
+
31
+ func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
32
+
33
+
34
+
35
+ let storyboard = UIStoryboard.init(name: "Login", bundle: nil)
36
+
37
+ let loginViewController = storyboard.instantiateInitialViewController()
38
+
39
+
40
+
41
+ self.window!.rootViewController = loginViewController
42
+
43
+
44
+
45
+ self.window!.backgroundColor = UIColor.whiteColor()
46
+
47
+ self.window!.makeKeyAndVisible()
48
+
49
+
50
+
51
+ return true
52
+
53
+ }
54
+
55
+ }
56
+
57
+ ```