質問編集履歴
4
タイトルを修正しました。
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
unrecognized selector sent to instance
|
1
|
+
unrecognized selector sent to instance の解消方法
|
body
CHANGED
File without changes
|
3
urlがmarkdownになってなかったので修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
下記URLと同じように実装したはずなのですが、unrecognized selector sent to instance というエラーになります。
|
3
|
-
https://qiita.com/pe-ta/items/8f474358d1dd789557f3
|
4
3
|
|
4
|
+
[参考サイト](https://qiita.com/pe-ta/items/8f474358d1dd789557f3)
|
5
5
|
ビルドして1つ目の追加はできるのですが、メイン画面に遷移して再び追加画面で入力しようとするとエラーになります。
|
6
6
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
@@ -50,11 +50,12 @@
|
|
50
50
|
```
|
51
51
|
|
52
52
|
### 試したこと
|
53
|
-
https://qiita.com/yoshiki-0428/items/80ea88f65f5a62ffcc11
|
54
53
|
こちらに書かれているようにstoryboardのクラスを見直しましたが、AddController.swiftとTODO追加画面の紐付けはできていました。
|
55
|
-
|
54
|
+
[参考サイト](https://qiita.com/yoshiki-0428/items/80ea88f65f5a62ffcc11 )
|
56
55
|
テキストフィールドのidentifierを「TodoTextField」や「AddController」にしてみましたが変化はありませんでした。
|
57
56
|
|
57
|
+
初心者で何もわかりませんがご教授お願いします m(__)m
|
58
|
+
|
58
59
|

|
59
60
|

|
60
61
|
|
2
markdownになっていない部分を修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,13 +5,16 @@
|
|
5
5
|
ビルドして1つ目の追加はできるのですが、メイン画面に遷移して再び追加画面で入力しようとするとエラーになります。
|
6
6
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
|
-
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[practice3.AddController TodoTextField:]: unrecognized selector sent to instance 0x7fee8c626290' terminating with uncaught exception of type NSException
|
9
8
|
|
9
|
+
|
10
10
|
```
|
11
|
-
|
11
|
+
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[practice3.AddController TodoTextField:]: unrecognized selector sent to instance 0x7fee8c626290' terminating with uncaught exception of type NSException
|
12
12
|
```
|
13
13
|
|
14
14
|
### 該当のソースコード
|
15
|
+
|
16
|
+
|
17
|
+
```Swift
|
15
18
|
// AddController.swift
|
16
19
|
import UIKit
|
17
20
|
|
@@ -44,9 +47,6 @@
|
|
44
47
|
super.didReceiveMemoryWarning()
|
45
48
|
}
|
46
49
|
}
|
47
|
-
|
48
|
-
```Swift
|
49
|
-
ソースコード
|
50
50
|
```
|
51
51
|
|
52
52
|
### 試したこと
|
1
markdownになっていない部分を修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
ビルドして1つ目の追加はできるのですが、メイン画面に遷移して再び追加画面で入力しようとするとエラーになります。
|
6
6
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
|
+
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[practice3.AddController TodoTextField:]: unrecognized selector sent to instance 0x7fee8c626290' terminating with uncaught exception of type NSException
|
8
9
|
|
9
10
|
```
|
10
11
|
エラーメッセージ
|
11
12
|
```
|
12
|
-
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[practice3.AddController TodoTextField:]: unrecognized selector sent to instance 0x7fee8c626290' terminating with uncaught exception of type NSException
|
13
13
|
|
14
14
|
### 該当のソースコード
|
15
15
|
// AddController.swift
|