質問編集履歴
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,6 +19,18 @@
|
|
19
19
|
self.Qtext.delegate = self;
|
20
20
|
|
21
21
|
self.Atext.delegate = self;
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
self.Qtext = [[UITextField alloc] initWithFrame:CGRectMake(30, 30, 200, 30)];
|
26
|
+
|
27
|
+
[self.view addSubview:self.Qtext];
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
self.Atext = [[UITextField alloc] initWithFrame:CGRectMake(30, 30, 200, 30)];
|
32
|
+
|
33
|
+
[self.view addSubview:self.Atext];
|
22
34
|
|
23
35
|
}
|
24
36
|
|
@@ -51,3 +63,5 @@
|
|
51
63
|
<UITextFieldDelegate>は書いています。
|
52
64
|
|
53
65
|
NSLogで確認したところtextFieldShouldReturnは呼ばれていません。
|
66
|
+
|
67
|
+
実行したところtextfieldは両方とも生成されていました
|
1
追加情報を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -43,3 +43,11 @@
|
|
43
43
|
上記のようなコードを書いてみたのですがキーボードが閉じません。
|
44
44
|
|
45
45
|
どうしたら良いでしょうか?
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
・追加情報
|
50
|
+
|
51
|
+
<UITextFieldDelegate>は書いています。
|
52
|
+
|
53
|
+
NSLogで確認したところtextFieldShouldReturnは呼ばれていません。
|