回答編集履歴
1
oops!
test
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
+
座標/サイズに依存する設定は、それらが確定してから設定します。
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
```swift
|
2
6
|
|
3
7
|
btnShadowView.frame = buttonView.frame
|
8
|
+
|
9
|
+
btnShadowView.layer.shadowPath = UIBezierPath(roundedRect: btnShadowView.bounds, cornerRadius: 34).cgPath
|
4
10
|
|
5
11
|
```
|
6
12
|
|
7
13
|
|
8
14
|
|
9
|
-
この行
|
15
|
+
この2行を`viewDidLayoutSubviews`に移動して下さい。
|