回答編集履歴

1

追記しました。

2018/04/28 02:16

投稿

newmt
newmt

スコア1277

test CHANGED
@@ -32,6 +32,12 @@
32
32
 
33
33
  cell.contentView.rightAnchor.constraint(equalTo: button.rightAnchor, constant: 10).isActive = true
34
34
 
35
+
36
+
37
+ // 中央にする
38
+
39
+ button.centerYAnchor.constraint(equalTo: cell.centerYAnchor).isActive = true
40
+
35
41
 
36
42
 
37
43
  return cell