回答編集履歴

1

コードの修正

2019/09/20 04:28

投稿

hayabusabusash
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```Swift
8
8
 
9
- // 大枠のStackView
9
+ // 大枠のStackView
10
10
 
11
11
  let verticalStackView = UIStackView()
12
12
 
@@ -25,6 +25,8 @@
25
25
  // Auto layout
26
26
 
27
27
  NSLayoutConstraint.activate([
28
+
29
+ verticalStackView.centerXAnchor.constraint(equalTo: view.centerXAnchor, constant: 0),
28
30
 
29
31
  verticalStackView.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: 0),
30
32