質問編集履歴

1

情報の不足

2016/02/12 07:58

投稿

tamago0224
tamago0224

スコア71

test CHANGED
File without changes
test CHANGED
@@ -73,3 +73,119 @@
73
73
 
74
74
 
75
75
  ```
76
+
77
+
78
+
79
+ 追記
80
+
81
+ AppDelegate.swiftコードの追加
82
+
83
+
84
+
85
+ ```ここに言語を入力
86
+
87
+ import UIKit
88
+
89
+
90
+
91
+ @UIApplicationMain
92
+
93
+ class AppDelegate: UIResponder, UIApplicationDelegate {
94
+
95
+
96
+
97
+ var window: UIWindow?
98
+
99
+
100
+
101
+
102
+
103
+ func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
104
+
105
+ // Override point for customization after application launch.
106
+
107
+
108
+
109
+ //cconfigure ViewController class instance.
110
+
111
+ let viewController: ViewController = ViewController()
112
+
113
+
114
+
115
+
116
+
117
+ //configure NavigationController class
118
+
119
+ let myNavigationController = UINavigationController(rootViewController: viewController)
120
+
121
+
122
+
123
+ //set myNavigationController to rootViewController
124
+
125
+ self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
126
+
127
+ self.window?.rootViewController = myNavigationController
128
+
129
+ self.window?.makeKeyAndVisible()
130
+
131
+
132
+
133
+ return true
134
+
135
+ }
136
+
137
+
138
+
139
+ func applicationWillResignActive(application: UIApplication) {
140
+
141
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
142
+
143
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
144
+
145
+ }
146
+
147
+
148
+
149
+ func applicationDidEnterBackground(application: UIApplication) {
150
+
151
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
152
+
153
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
154
+
155
+ }
156
+
157
+
158
+
159
+ func applicationWillEnterForeground(application: UIApplication) {
160
+
161
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
162
+
163
+ }
164
+
165
+
166
+
167
+ func applicationDidBecomeActive(application: UIApplication) {
168
+
169
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
170
+
171
+ }
172
+
173
+
174
+
175
+ func applicationWillTerminate(application: UIApplication) {
176
+
177
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
178
+
179
+ }
180
+
181
+
182
+
183
+
184
+
185
+ }
186
+
187
+
188
+
189
+
190
+
191
+ ```