IOS学习笔记报错笔记一

2014-09-02 13:23:15.806 ShowCase[4283:570850] /Users/fuyun/Library/Developer/CoreSimulator/Devices/0973AF11-A248-460B-BF27-3BF5BDC8D92D/data/Containers/Bundle/Application/B4ACB0A9-54E3-4857-AE5E-8DBE25657E79/ShowCase.app/video/video.mp4

2014-09-02 13:23:17.861 ShowCase[4283:570850] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<hx 0x79491b00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key collectionview.'

*** First throw call stack:

(

0   CoreFoundation                      0x00c11ca6 __exceptionPreprocess + 182

1   libobjc.A.dylib                     0x005548bf objc_exception_throw + 44

2   CoreFoundation                      0x00c118c1 -[NSException raise] + 17

3   Foundation                          0x001e53ae -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282

4   Foundation                          0x00141438 _NSSetUsingKeyValueSetter + 115

5   Foundation                          0x001413bd -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267

6   Foundation                          0x00176976 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 386

7   UIKit                               0x012e8129 -[UIRuntimeOutletConnection connect] + 106

8   libobjc.A.dylib                     0x00567724 -[NSObject performSelector:] + 62

9   CoreFoundation                      0x00b4c90c -[NSArray makeObjectsPerformSelector:] + 316

10  UIKit                               0x012e6bea -[UINib instantiateWithOwner:options:] + 1775

11  UIKit                               0x01112564 -[UIViewController _loadViewFromNibNamed:bundle:] + 270

12  UIKit                               0x01112e0b -[UIViewController loadView] + 295

13  UIKit                               0x0111303f -[UIViewController loadViewIfRequired] + 78

14  UIKit                               0x011135e5 -[UIViewController view] + 35

15  UIKit                               0x0115db92 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 426

16  UIKit                               0x0115d1d2 -[UITabBarController transitionFromViewController:toViewController:] + 64

17  UIKit                               0x011593c5 -[UITabBarController _setSelectedViewController:] + 340

18  UIKit                               0x01159247 -[UITabBarController setSelectedViewController:] + 193

19  UIKit                               0x0115d0ab -[UITabBarController _tabBarItemClicked:] + 326

20  libobjc.A.dylib                     0x005677cd -[NSObject performSelector:withObject:withObject:] + 84

21  UIKit                               0x00fc152c -[UIApplication sendAction:to:from:forEvent:] + 99

22  UIKit                               0x00fc14be -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64

23  UIKit                               0x012f90ad -[UITabBar _sendAction:withEvent:] + 466

24  libobjc.A.dylib                     0x005677cd -[NSObject performSelector:withObject:withObject:] + 84

25  UIKit                               0x00fc152c -[UIApplication sendAction:to:from:forEvent:] + 99

26  UIKit                               0x00fc14be -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64

27  UIKit                               0x010f1fb6 -[UIControl sendAction:to:forEvent:] + 69

28  UIKit                               0x010f23d3 -[UIControl _sendActionsForEvents:withEvent:] + 598

29  UIKit                               0x010f1fee -[UIControl sendActionsForControlEvents:] + 48

30  UIKit                               0x012fded1 -[UITabBar(Static) _buttonUp:] + 123

31  libobjc.A.dylib                     0x005677cd -[NSObject performSelector:withObject:withObject:] + 84

32  UIKit                               0x00fc152c -[UIApplication sendAction:to:from:forEvent:] + 99

33  UIKit                               0x00fc14be -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64

34  UIKit                               0x010f1fb6 -[UIControl sendAction:to:forEvent:] + 69

35  UIKit                               0x010f23d3 -[UIControl _sendActionsForEvents:withEvent:] + 598

36  UIKit                               0x010f163d -[UIControl touchesEnded:withEvent:] + 660

37  UIKit                               0x01010d3a -[UIWindow _sendTouchesForEvent:] + 874

38  UIKit                               0x01011815 -[UIWindow sendEvent:] + 791

39  UIKit                               0x00fd74b9 -[UIApplication sendEvent:] + 242

40  UIKit                               0x00fe6f38 _UIApplicationHandleEventFromQueueEvent + 20620

41  UIKit                               0x00fbc185 _UIApplicationHandleEventQueue + 2154

42  CoreFoundation                      0x00b3655f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15

43  CoreFoundation                      0x00b2b9ed __CFRunLoopDoSources0 + 253

44  CoreFoundation                      0x00b2af48 __CFRunLoopRun + 952

45  CoreFoundation                      0x00b2a8cb CFRunLoopRunSpecific + 443

46  CoreFoundation                      0x00b2a6fb CFRunLoopRunInMode + 123

47  GraphicsServices                    0x037da320 GSEventRunModal + 192

48  GraphicsServices                    0x037da15d GSEventRun + 104

49  UIKit                               0x00fbfba5 UIApplicationMain + 1526

50  ShowCase                            0x0007f85d main + 141

51  libdyld.dylib                       0x02ec5ac9 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException


mainstoryboard中修改,一般此问题 都是由Interface Build与代码中IBOutlet的连接所引起的。 可能是在代码中对IBOutlet的名称进行了修改,导致Interface Build中的连接失效。在相应的右键检查连接,或者直接删除重新建立。

2  、Push segues can only be used when the source controller is managed by an instance of UINavigationController.'

源viewController不是UINavigationController的实例.

解决这个错误有两种方法:

  第一个:是在用“Ctrl”连接两个viewcontroller的时候,不要用“push”的方式,而用“modal”的方式。

  第二个:就是添加一个UINavigationController


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值