質問編集履歴
1
エラー内容を追記、開発環境を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,8 +34,98 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
+
「this class is not key value coding-compliant for the key myButton」が問題だとは分かるのですが、対処法が分かりませんでした。
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
【エラー箇所】AppDelegate.swift
|
44
|
+
|
37
45
|
```
|
38
46
|
|
39
|
-
|
47
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
40
48
|
|
41
49
|
```
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
【ログ】
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
2015-04-09 10:33:50.495 ButtonTutorial[9866:505128] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ButtonTutorial.ViewController 0x7ff94143bfb0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myButton.'
|
58
|
+
|
59
|
+
*** First throw call stack:
|
60
|
+
|
61
|
+
(
|
62
|
+
|
63
|
+
0 CoreFoundation 0x00000001026bea75 __exceptionPreprocess + 165
|
64
|
+
|
65
|
+
1 libobjc.A.dylib 0x0000000104216bb7 objc_exception_throw + 45
|
66
|
+
|
67
|
+
2 CoreFoundation 0x00000001026be6b9 -[NSException raise] + 9
|
68
|
+
|
69
|
+
3 Foundation 0x0000000102ad9d43 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
|
70
|
+
|
71
|
+
4 CoreFoundation 0x00000001026085e0 -[NSArray makeObjectsPerformSelector:] + 224
|
72
|
+
|
73
|
+
5 UIKit 0x00000001032184ed -[UINib instantiateWithOwner:options:] + 1506
|
74
|
+
|
75
|
+
6 UIKit 0x0000000103076a88 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
|
76
|
+
|
77
|
+
7 UIKit 0x0000000103077078 -[UIViewController loadView] + 109
|
78
|
+
|
79
|
+
8 UIKit 0x00000001030772e9 -[UIViewController loadViewIfRequired] + 75
|
80
|
+
|
81
|
+
9 UIKit 0x000000010307777e -[UIViewController view] + 27
|
82
|
+
|
83
|
+
10 UIKit 0x0000000102f96509 -[UIWindow addRootViewControllerViewIfPossible] + 58
|
84
|
+
|
85
|
+
11 UIKit 0x0000000102f968a1 -[UIWindow _setHidden:forced:] + 247
|
86
|
+
|
87
|
+
12 UIKit 0x0000000102fa2f8c -[UIWindow makeKeyAndVisible] + 42
|
88
|
+
|
89
|
+
13 UIKit 0x0000000102f4d0c2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
|
90
|
+
|
91
|
+
14 UIKit 0x0000000102f4fe3e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
|
92
|
+
|
93
|
+
15 UIKit 0x0000000102f4ed35 -[UIApplication workspaceDidEndTransaction:] + 179
|
94
|
+
|
95
|
+
16 FrontBoardServices 0x0000000105dc8243 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
|
96
|
+
|
97
|
+
17 CoreFoundation 0x00000001025f3c7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
|
98
|
+
|
99
|
+
18 CoreFoundation 0x00000001025e99c5 __CFRunLoopDoBlocks + 341
|
100
|
+
|
101
|
+
19 CoreFoundation 0x00000001025e9785 __CFRunLoopRun + 2389
|
102
|
+
|
103
|
+
20 CoreFoundation 0x00000001025e8bc6 CFRunLoopRunSpecific + 470
|
104
|
+
|
105
|
+
21 UIKit 0x0000000102f4e7a2 -[UIApplication _run] + 413
|
106
|
+
|
107
|
+
22 UIKit 0x0000000102f51580 UIApplicationMain + 1282
|
108
|
+
|
109
|
+
23 ButtonTutorial 0x00000001024dfede top_level_code + 78
|
110
|
+
|
111
|
+
24 ButtonTutorial 0x00000001024dff1a main + 42
|
112
|
+
|
113
|
+
25 libdyld.dylib 0x00000001049f2145 start + 1
|
114
|
+
|
115
|
+
)
|
116
|
+
|
117
|
+
libc++abi.dylib: terminating with uncaught exception of type NSException
|
118
|
+
|
119
|
+
(lldb)
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
###開発環境
|
124
|
+
|
125
|
+
- iOS:8.2
|
126
|
+
|
127
|
+
- Xcode:6.2
|
128
|
+
|
129
|
+
- 使用言語:swift
|
130
|
+
|
131
|
+
- ios Simulator:iphone6
|