回答編集履歴

2

不要コード削除

2018/06/16 00:47

投稿

TakeOne
TakeOne

スコア6299

test CHANGED
@@ -62,8 +62,6 @@
62
62
 
63
63
  let sButton = UIButton(frame: shadowView.bounds)
64
64
 
65
- sButton.backgroundColor = UIColor.blue
66
-
67
65
  sButton.setBackgroundImage(sButtonImage, for: [])
68
66
 
69
67
  sButton.layer.cornerRadius = 10

1

コード修正

2018/06/16 00:47

投稿

TakeOne
TakeOne

スコア6299

test CHANGED
@@ -46,6 +46,8 @@
46
46
 
47
47
  let shadowView = UIView(frame: CGRect(x: 0, y: 0, width: 360, height: 200 ))
48
48
 
49
+ shadowView.center = CGPoint(x: 375/2, y: 200)
50
+
49
51
  shadowView.layer.shadowColor = UIColor.black.cgColor
50
52
 
51
53
  shadowView.layer.shadowOpacity = 0.5
@@ -64,8 +66,6 @@
64
66
 
65
67
  sButton.setBackgroundImage(sButtonImage, for: [])
66
68
 
67
- sButton.center = CGPoint(x: 375/2, y: 200)
68
-
69
69
  sButton.layer.cornerRadius = 10
70
70
 
71
71
  sButton.layer.masksToBounds = true