質問編集履歴
3
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -241,3 +241,45 @@
|
|
241
241
|
![イメージ説明](fba46f1fdfbc30f979b188ec22545d94.png)
|
242
242
|
|
243
243
|
![イメージ説明](78cda20e785e1c0f88d8d738efcb98b5.png)
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
**イメージ**
|
248
|
+
|
249
|
+
```swift
|
250
|
+
|
251
|
+
//labelインスタンス
|
252
|
+
|
253
|
+
//label1
|
254
|
+
|
255
|
+
let label = UILabel()
|
256
|
+
|
257
|
+
label.backgroundColor = UIColor.darkGray
|
258
|
+
|
259
|
+
//label2
|
260
|
+
|
261
|
+
let label2 = UILabel()
|
262
|
+
|
263
|
+
label2.backgroundColor = UIColor.darkGray
|
264
|
+
|
265
|
+
//label3
|
266
|
+
|
267
|
+
let label3 = UILabel()
|
268
|
+
|
269
|
+
label3.backgroundColor = UIColor.darkGray
|
270
|
+
|
271
|
+
//label4
|
272
|
+
|
273
|
+
let label4 = UILabel()
|
274
|
+
|
275
|
+
label4.backgroundColor = UIColor.darkGray
|
276
|
+
|
277
|
+
//label5
|
278
|
+
|
279
|
+
let label5 = UILabel()
|
280
|
+
|
281
|
+
label5.backgroundColor = UIColor.darkGray
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
```
|
2
画像の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -235,3 +235,9 @@
|
|
235
235
|
** エラーメッセージ**
|
236
236
|
|
237
237
|
Use of unresolved identifier 'addalert'
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
![イメージ説明](fba46f1fdfbc30f979b188ec22545d94.png)
|
242
|
+
|
243
|
+
![イメージ説明](78cda20e785e1c0f88d8d738efcb98b5.png)
|
1
エラーメッセージの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -229,3 +229,9 @@
|
|
229
229
|
**試したこと**
|
230
230
|
|
231
231
|
func addalert()-> String{を関数として@IBAction func addlabel(_ sender: Any) {に値を渡そうとしているが大学のC言語で勉強した程度しか関数への理解が乏しいのでエラーが取れずに困っています
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
** エラーメッセージ**
|
236
|
+
|
237
|
+
Use of unresolved identifier 'addalert'
|