回答編集履歴
1
訂正
answer
CHANGED
@@ -8,4 +8,6 @@
|
|
8
8
|
```
|
9
9
|
|
10
10
|
[UIImage](https://developer.apple.com/documentation/uikit/uiimage)には背景色のプロパティは存在しないので、設定することはできません。
|
11
|
-
[UIImageView](https://developer.apple.com/documentation/uikit/uiimageview)は`UIView`を継承しているので背景色のプロパティがあり、設定することは可能です。
|
11
|
+
[UIImageView](https://developer.apple.com/documentation/uikit/uiimageview)は`UIView`を継承しているので背景色のプロパティがあり、設定することは可能です。
|
12
|
+
|
13
|
+
質問のコードの中では`image`と`imageBack`の2つを混同されていると思われます。
|