質問編集履歴
4
storyboardの画像を追加。
title
CHANGED
File without changes
|
body
CHANGED
@@ -167,4 +167,7 @@
|
|
167
167
|
|
168
168
|
```
|
169
169
|
■Debug navigator
|
170
|
-

|
170
|
+

|
171
|
+
|
172
|
+
■storyboard
|
173
|
+

|
3
debug navigatorのスクリーンショットを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -165,4 +165,6 @@
|
|
165
165
|
|
166
166
|
}
|
167
167
|
|
168
|
-
```
|
168
|
+
```
|
169
|
+
■Debug navigator
|
170
|
+

|
2
AppDelegate\.swiftをアップロード
title
CHANGED
File without changes
|
body
CHANGED
@@ -126,4 +126,43 @@
|
|
126
126
|
return dirUrl.appendingPathComponent(fileName)
|
127
127
|
}
|
128
128
|
}
|
129
|
+
```
|
130
|
+
■AppDelegate.swift
|
131
|
+
```ここに言語を入力
|
132
|
+
@UIApplicationMain
|
133
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
134
|
+
|
135
|
+
var window: UIWindow?
|
136
|
+
|
137
|
+
|
138
|
+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
139
|
+
// Override point for customization after application launch.
|
140
|
+
return true
|
141
|
+
}
|
142
|
+
|
143
|
+
func applicationWillResignActive(_ application: UIApplication) {
|
144
|
+
// 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.
|
145
|
+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
146
|
+
}
|
147
|
+
|
148
|
+
func applicationDidEnterBackground(_ application: UIApplication) {
|
149
|
+
// 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.
|
150
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
151
|
+
}
|
152
|
+
|
153
|
+
func applicationWillEnterForeground(_ application: UIApplication) {
|
154
|
+
// 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.
|
155
|
+
}
|
156
|
+
|
157
|
+
func applicationDidBecomeActive(_ application: UIApplication) {
|
158
|
+
// 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.
|
159
|
+
}
|
160
|
+
|
161
|
+
func applicationWillTerminate(_ application: UIApplication) {
|
162
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
}
|
167
|
+
|
129
168
|
```
|
1
コメントありがとうございます。ソースコードをマークダウンで記載しました。処理エラーが出るのは、実機でアプリを起動した時です。ボタンなどはまだ表示されていない状態です。
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
xcode:8.1
|
20
20
|
|
21
21
|
■ソースコード
|
22
|
+
```swift
|
22
23
|
import UIKit
|
23
24
|
import AVFoundation
|
24
25
|
import SpeechToTextV1
|
@@ -124,4 +125,5 @@
|
|
124
125
|
|
125
126
|
return dirUrl.appendingPathComponent(fileName)
|
126
127
|
}
|
127
|
-
}
|
128
|
+
}
|
129
|
+
```
|