严格按照课程来写的,只换了一下korean的位置,不能点击korean,点击就出错,定位到 AppDelegate.swift 中
2015-05-04 17:15:16.538 BeautyGallery[2062:1168010] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<BeautyGallery.JapanViewController 0x7fb6da448de0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key beautyImage.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010d7acc65 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010f449bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010d7ac8a9 -[NSException raise] + 9
3 Foundation 0x000000010dbcab53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x000000010d6f4d50 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010e45552b -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010e2ad718 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x000000010e2add08 -[UIViewController loadView] + 109
8 UIKit 0x000000010e2adf79 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x000000010e2ae40e -[UIViewController view] + 27
10 UIKit 0x000000010e2f304f -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 360
11 UIKit 0x000000010e2ef1fa -[UITabBarController _setSelectedViewController:] + 311
12 UIKit 0x000000010e2f26b8 -[UITabBarController _tabBarItemClicked:] + 259
13 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
14 UIKit 0x000000010e465536 -[UITabBar _sendAction:withEvent:] + 451
15 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
16 UIKit 0x000000010e29054a -[UIControl _sendActionsForEvents:withEvent:] + 467
17 UIKit 0x000000010e469a92 -[UITabBar(Static) _buttonUp:] + 103
18 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
19 UIKit 0x000000010e29054a -[UIControl _sendActionsForEvents:withEvent:] + 467
20 UIKit 0x000000010e28f919 -[UIControl touchesEnded:withEvent:] + 522
21 UIKit 0x000000010e1cb998 -[UIWindow _sendTouchesForEvent:] + 735
22 UIKit 0x000000010e1cc2c2 -[UIWindow sendEvent:] + 682
23 UIKit 0x000000010e192581 -[UIApplication sendEvent:] + 246
24 UIKit 0x000000010e19fd1c _UIApplicationHandleEventFromQueueEvent + 18265
25 UIKit 0x000000010e17a5dc _UIApplicationHandleEventQueue + 2066
26 CoreFoundation 0x000000010d6e0431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
27 CoreFoundation 0x000000010d6d62fd __CFRunLoopDoSources0 + 269
28 CoreFoundation 0x000000010d6d5934 __CFRunLoopRun + 868
29 CoreFoundation 0x000000010d6d5366 CFRunLoopRunSpecific + 470
30 GraphicsServices 0x0000000110e67a3e GSEventRunModal + 161
31 UIKit 0x000000010e17d900 UIApplicationMain + 1282
32 BeautyGallery 0x000000010d5ad697 main + 135
33 libdyld.dylib 0x000000010fba1145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
严格按照课程来写的,只换了一下korean的位置,不能点击korean,点击就出错,定位到 AppDelegate.swift 中
2015-05-04 17:15:16.538 BeautyGallery[2062:1168010] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<BeautyGallery.JapanViewController 0x7fb6da448de0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key beautyImage.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010d7acc65 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010f449bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010d7ac8a9 -[NSException raise] + 9
3 Foundation 0x000000010dbcab53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x000000010d6f4d50 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010e45552b -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010e2ad718 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x000000010e2add08 -[UIViewController loadView] + 109
8 UIKit 0x000000010e2adf79 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x000000010e2ae40e -[UIViewController view] + 27
10 UIKit 0x000000010e2f304f -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 360
11 UIKit 0x000000010e2ef1fa -[UITabBarController _setSelectedViewController:] + 311
12 UIKit 0x000000010e2f26b8 -[UITabBarController _tabBarItemClicked:] + 259
13 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
14 UIKit 0x000000010e465536 -[UITabBar _sendAction:withEvent:] + 451
15 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
16 UIKit 0x000000010e29054a -[UIControl _sendActionsForEvents:withEvent:] + 467
17 UIKit 0x000000010e469a92 -[UITabBar(Static) _buttonUp:] + 103
18 UIKit 0x000000010e17eda2 -[UIApplication sendAction:to:from:forEvent:] + 75
19 UIKit 0x000000010e29054a -[UIControl _sendActionsForEvents:withEvent:] + 467
20 UIKit 0x000000010e28f919 -[UIControl touchesEnded:withEvent:] + 522
21 UIKit 0x000000010e1cb998 -[UIWindow _sendTouchesForEvent:] + 735
22 UIKit 0x000000010e1cc2c2 -[UIWindow sendEvent:] + 682
23 UIKit 0x000000010e192581 -[UIApplication sendEvent:] + 246
24 UIKit 0x000000010e19fd1c _UIApplicationHandleEventFromQueueEvent + 18265
25 UIKit 0x000000010e17a5dc _UIApplicationHandleEventQueue + 2066
26 CoreFoundation 0x000000010d6e0431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
27 CoreFoundation 0x000000010d6d62fd __CFRunLoopDoSources0 + 269
28 CoreFoundation 0x000000010d6d5934 __CFRunLoopRun + 868
29 CoreFoundation 0x000000010d6d5366 CFRunLoopRunSpecific + 470
30 GraphicsServices 0x0000000110e67a3e GSEventRunModal + 161
31 UIKit 0x000000010e17d900 UIApplicationMain + 1282
32 BeautyGallery 0x000000010d5ad697 main + 135
33 libdyld.dylib 0x000000010fba1145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException