質問編集履歴
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
|
155
155
|
```ここに言語を入力
|
156
156
|
|
157
|
-
|
157
|
+
//AppDelegateです
|
158
158
|
|
159
159
|
|
160
160
|
|
2
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -147,3 +147,85 @@
|
|
147
147
|
|
148
148
|
|
149
149
|
```
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
//追記しました。 こちらになります。
|
154
|
+
|
155
|
+
```ここに言語を入力
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
import UIKit
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
@UIApplicationMain
|
166
|
+
|
167
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
var window: UIWindow?
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
let layout = UICollectionViewFlowLayout()
|
180
|
+
|
181
|
+
let view1Controller = View1Controller(collectionViewLayout: layout)
|
182
|
+
|
183
|
+
window?.rootViewController = UINavigationController(rootViewController: view1Controller)
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
return true
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
func applicationWillResignActive(_ application: UIApplication) {
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
func applicationDidEnterBackground(_ application: UIApplication) {
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
func applicationWillEnterForeground(_ application: UIApplication) {
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
func applicationDidBecomeActive(_ application: UIApplication) {
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
func applicationWillTerminate(_ application: UIApplication) {
|
220
|
+
|
221
|
+
}
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
```
|
1
変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
sizeForItemAt indexPathを、if文で分けたいです。
|
1
|
+
sizeForItemAt indexPath内を、if文で分けたいです。
|
test
CHANGED
File without changes
|