質問編集履歴
4
エラーメッセージを追記。エラー内容の表現を訂正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,9 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
このエラーにありがちな「接続がダブっている」ことはなく解決できません。
|
15
|
+
このエラーにありがちな~~「接続がダブっている」~~ 二重にOutlet接続しているなど、「適切にリンクされていない」ことはなく解決できません。
|
16
|
+
|
17
|
+
|
16
18
|
|
17
19
|
|
18
20
|
|
@@ -27,6 +29,26 @@
|
|
27
29
|
```DebugArea
|
28
30
|
|
29
31
|
libc++abi.dylib: terminating with uncaught exception of type NSException
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
//追記
|
36
|
+
|
37
|
+
2019-02-04 10:50:41.308969+0900 プロジェクト名[1939:105652] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fe980a413e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key testButton.'
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
.
|
42
|
+
|
43
|
+
.
|
44
|
+
|
45
|
+
.
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
libc++abi.dylib: terminating with uncaught exception of type NSException
|
50
|
+
|
51
|
+
(lldb)
|
30
52
|
|
31
53
|
```
|
32
54
|
|
@@ -68,7 +90,7 @@
|
|
68
90
|
|
69
91
|
|
70
92
|
|
71
|
-
よろしくお願いします。
|
93
|
+
おそらく初歩的な問題だと思います。よろしくお願いします。
|
72
94
|
|
73
95
|
|
74
96
|
|
@@ -84,7 +106,13 @@
|
|
84
106
|
|
85
107
|
|
86
108
|
|
109
|
+
![遷移元トップ](9398b48d107654eb9fced8a9f828c6a1.png)
|
110
|
+
|
111
|
+
![遷移元Button](e959a130294b68ee1e3eb0853abcb0d0.png)
|
112
|
+
|
87
|
-
![遷移
|
113
|
+
![遷移後TestButton](b151d0e1eae8121cacc4c143802ad5a9.png)
|
114
|
+
|
115
|
+
|
88
116
|
|
89
117
|
|
90
118
|
|
3
Connections Inspectorのスクリーンショットを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,24 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
よろしくお願いします。
|
71
72
|
|
72
73
|
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
### 追記
|
80
|
+
|
81
|
+
以下3つのConnections Inspectorのスクリーンショットです。
|
82
|
+
|
83
|
+
遷移元ViewController「トップ」、遷移元のボタン(これを押すと画面遷移)、遷移後のボタン
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
![遷移元トップ](9398b48d107654eb9fced8a9f828c6a1.png) ![遷移元Button](e959a130294b68ee1e3eb0853abcb0d0.png)]![遷移後TestButton](b151d0e1eae8121cacc4c143802ad5a9.png)
|
88
|
+
|
89
|
+
|
90
|
+
|
73
|
-
Outlet接続
|
91
|
+
遷移後のボタンは問題の確認のためOutlet接続だけしています。
|
2
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Outlet接続すると、接続がダブっていないのにエラー「Thread 1: signal SIGABRT」になる
|
1
|
+
UI部品をOutlet接続すると、接続がダブっていないのにエラー「Thread 1: signal SIGABRT」になる
|
test
CHANGED
File without changes
|
1
試したこと、補足情報を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,9 +40,11 @@
|
|
40
40
|
|
41
41
|
遷移先のViewController上のUIButton、UILabelの接続を全て解除したところ問題なく画面遷移しましたが、再度Outlet接続するとエラーになります。
|
42
42
|
|
43
|
+
試しに新しくUILabelを配置してOutlet接続だけしてみましたがエラーになりました。新しいUIButtonのAction接続でも同じくエラーになりました。
|
43
44
|
|
44
45
|
|
46
|
+
|
45
|
-
|
47
|
+
CustomClassも間違いありません。
|
46
48
|
|
47
49
|
|
48
50
|
|
@@ -60,4 +62,12 @@
|
|
60
62
|
|
61
63
|
|
62
64
|
|
63
|
-
ファイルをドラッグ&ドロップで移行させるのではなく、新規に作成してコードをコピペする方法もやってみましたがエラーになってしまいました。
|
65
|
+
ファイルをドラッグ&ドロップで移行させるのではなく、新規に.swiftファイルを作成してコードをコピペする方法もやってみましたがエラーになってしまいました。StoryBoardはプロジェクト作成時のMain.storyboardにNavigationController等をコピペしました。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
Outlet接続するだけでよろしくお願いします。
|