回答編集履歴

1

修正

2018/05/05 21:49

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  tmpSwitch.layer.position = CGPoint(x:25+(i*40), y: 20+(j*20))
34
34
 
35
+ self.view.addSubview(tmpSwitch)
36
+
35
37
 
36
38
 
37
39
  if mySwitch.indices.contains(i) {
@@ -48,8 +50,6 @@
48
50
 
49
51
  }
50
52
 
51
- self.view.addSubview(tmpSwitch)
52
-
53
53
  }
54
54
 
55
55
  }