質問編集履歴
2
回答者による意見で一部変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,7 +42,6 @@
|
|
42
42
|
@IBInspectable var shadowOpacity: Float = 20.0
|
43
43
|
@IBInspectable var shadowColor: UIColor = UIColor.blackColor()
|
44
44
|
@IBInspectable var shadowRadius: CGFloat = 2.0
|
45
|
-
@IBInspectable var bgColor: UIColor = UIColor.whiteColor()
|
46
45
|
|
47
46
|
// Only override drawRect: if you perform custom drawing.
|
48
47
|
// An empty implementation adversely affects performance during animation.
|
@@ -59,8 +58,6 @@
|
|
59
58
|
self.layer.shadowColor = self.shadowColor.CGColor
|
60
59
|
// ぼかしの量
|
61
60
|
self.layer.shadowRadius = self.shadowRadius
|
62
|
-
// ビューの背景に色を設定
|
63
|
-
self.layer.backgroundColor = self.bgColor.CGColor
|
64
61
|
|
65
62
|
}
|
66
63
|
}
|
@@ -90,6 +87,8 @@
|
|
90
87
|
|
91
88
|
https://gyazo.com/fecfb8d1fb2590680d8c0f994145555d
|
92
89
|
|
90
|
+
GUIの方で背景を白く設定しましたが、黒いままでした。
|
93
91
|
|
92
|
+
|
94
93
|
よろしくおねがいします٩(๑❛ᴗ❛๑)۶
|
95
94
|
♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡
|
1
画像の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -86,6 +86,10 @@
|
|
86
86
|
高さの設定や幅の設定の記事が探しても見つけられないのですが、
|
87
87
|
GUIでできる部分だから設定しないのが普通なのでしょうか?
|
88
88
|
|
89
|
+
現在のGUIはこのような感じです。
|
89
90
|
|
91
|
+
https://gyazo.com/fecfb8d1fb2590680d8c0f994145555d
|
92
|
+
|
93
|
+
|
90
94
|
よろしくおねがいします٩(๑❛ᴗ❛๑)۶
|
91
95
|
♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡o。.。o♡
|