回答編集履歴

3

修正

2016/04/08 16:20

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -22,9 +22,15 @@
22
22
 
23
23
  super.viewDidLoad()
24
24
 
25
+
26
+
25
-
27
+ // Swift2.2
26
28
 
27
29
  textField1.addTarget(self , action: #selector(changeText(_:)), forControlEvents: .EditingChanged)
30
+
31
+ // Swift2.1まで
32
+
33
+ //textField1.addTarget(self , action: Selector("changeText:"), forControlEvents: .EditingChanged)
28
34
 
29
35
  }
30
36
 

2

修正

2016/04/08 16:20

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
File without changes

1

修正

2016/04/08 16:17

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
 
14
14
 
15
- @IBOutlet weak var TextField1: UITextField!
15
+ @IBOutlet weak var textField1: UITextField!
16
16
 
17
- @IBOutlet weak var TextField2: UITextField!
17
+ @IBOutlet weak var textField2: UITextField!
18
18
 
19
19
 
20
20
 
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- TextField1.addTarget(self , action: #selector(changeText(_:)), forControlEvents: .EditingChanged)
27
+ textField1.addTarget(self , action: #selector(changeText(_:)), forControlEvents: .EditingChanged)
28
28
 
29
29
  }
30
30
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  func changeText(textField: UITextField) {
34
34
 
35
- TextField2.text = textField.text
35
+ textField2.text = textField.text
36
36
 
37
37
  }
38
38
 
@@ -46,6 +46,4 @@
46
46
 
47
47
  ---
48
48
 
49
-
50
-
51
- ![image](7092784141f15f5422e0057beda8ed73.png)
49
+ ![image](eee0a4ede8b9ab8a31c448908125cd67.png)