質問編集履歴

4

storyboardの画像を追加。

2016/11/15 06:03

投稿

hirdd
hirdd

スコア50

test CHANGED
File without changes
test CHANGED
@@ -337,3 +337,9 @@
337
337
  ■Debug navigator
338
338
 
339
339
  ![イメージ説明](6c8128a34b82c8b5cd5b41e963399347.png)
340
+
341
+
342
+
343
+ ■storyboard
344
+
345
+ ![イメージ説明](6ff514ddacf1afc740021028089cf54d.png)

3

debug navigatorのスクリーンショットを追加

2016/11/15 06:03

投稿

hirdd
hirdd

スコア50

test CHANGED
File without changes
test CHANGED
@@ -333,3 +333,7 @@
333
333
 
334
334
 
335
335
  ```
336
+
337
+ ■Debug navigator
338
+
339
+ ![イメージ説明](6c8128a34b82c8b5cd5b41e963399347.png)

2

AppDelegate\.swiftをアップロード

2016/11/15 06:01

投稿

hirdd
hirdd

スコア50

test CHANGED
File without changes
test CHANGED
@@ -255,3 +255,81 @@
255
255
  }
256
256
 
257
257
  ```
258
+
259
+ ■AppDelegate.swift
260
+
261
+ ```ここに言語を入力
262
+
263
+ @UIApplicationMain
264
+
265
+ class AppDelegate: UIResponder, UIApplicationDelegate {
266
+
267
+
268
+
269
+ var window: UIWindow?
270
+
271
+
272
+
273
+
274
+
275
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
276
+
277
+ // Override point for customization after application launch.
278
+
279
+ return true
280
+
281
+ }
282
+
283
+
284
+
285
+ func applicationWillResignActive(_ application: UIApplication) {
286
+
287
+ // 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.
288
+
289
+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
290
+
291
+ }
292
+
293
+
294
+
295
+ func applicationDidEnterBackground(_ application: UIApplication) {
296
+
297
+ // 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.
298
+
299
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
300
+
301
+ }
302
+
303
+
304
+
305
+ func applicationWillEnterForeground(_ application: UIApplication) {
306
+
307
+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
308
+
309
+ }
310
+
311
+
312
+
313
+ func applicationDidBecomeActive(_ application: UIApplication) {
314
+
315
+ // 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.
316
+
317
+ }
318
+
319
+
320
+
321
+ func applicationWillTerminate(_ application: UIApplication) {
322
+
323
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
324
+
325
+ }
326
+
327
+
328
+
329
+
330
+
331
+ }
332
+
333
+
334
+
335
+ ```

1

コメントありがとうございます。ソースコードをマークダウンで記載しました。処理エラーが出るのは、実機でアプリを起動した時です。ボタンなどはまだ表示されていない状態です。

2016/11/15 05:42

投稿

hirdd
hirdd

スコア50

test CHANGED
File without changes
test CHANGED
@@ -40,6 +40,8 @@
40
40
 
41
41
  ■ソースコード
42
42
 
43
+ ```swift
44
+
43
45
  import UIKit
44
46
 
45
47
  import AVFoundation
@@ -251,3 +253,5 @@
251
253
  }
252
254
 
253
255
  }
256
+
257
+ ```