hyunyoung158 / p194-TableViewCustomCell

0 stars 0 forks source link

실행시에 버그가 납니다. (수정완료) #1

Open hyunyoung158 opened 10 years ago

hyunyoung158 commented 10 years ago

2014-01-08 10:48:10.833 TableViewCustomCell[5105:70b] -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0xbf76790 2014-01-08 10:48:10.838 TableViewCustomCell[5105:70b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0xbf76790' * First throw call stack: ( 0 CoreFoundation 0x017375e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x014ba8b6 objc_exception_throw + 44 2 CoreFoundation 0x017d4903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 3 CoreFoundation 0x0172790b __forwarding + 1019 4 CoreFoundation 0x017274ee _CF_forwarding_prep_0 + 14 5 UIKit 0x0047f240 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 2510 6 UIKit 0x00482b3d -[UITableViewRowData numberOfRows] + 98 7 UIKit 0x0030b4c2 -[UITableView noteNumberOfRowsChanged] + 120 8 UIKit 0x0030ae6f -[UITableView reloadData] + 814 9 UIKit 0x0030e8d3 -[UITableView _reloadDataIfNeeded] + 65 10 UIKit 0x003134f4 -[UITableView layoutSubviews] + 36 11 UIKit 0x00297dd7 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355 12 libobjc.A.dylib 0x014cc81f -[NSObject performSelector:withObject:] + 70 13 QuartzCore 0x03b4172a -[CALayer layoutSublayers] + 148 14 QuartzCore 0x03b35514 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 15 QuartzCore 0x03b41675 -[CALayer layoutIfNeeded] + 160 16 UIKit 0x00352ca3 -[UIViewController window:setupWithInterfaceOrientation:] + 304 17 UIKit 0x00271d27 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212 18 UIKit 0x002708c6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82 19 UIKit 0x00270798 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117 20 UIKit 0x00270820 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67 21 UIKit 0x0026f8ba __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120 22 UIKit 0x0026f81c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400 23 UIKit 0x00270573 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870 24 UIKit 0x00273b66 -[UIWindow setDelegate:] + 449 25 UIKit 0x00344dc7 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180 26 UIKit 0x002697cc -[UIWindow addRootViewControllerViewIfPossible] + 609 27 UIKit 0x00269947 -[UIWindow _setHidden:forced:] + 312 28 UIKit 0x00269bdd -[UIWindow _orderFrontWithoutMakingKey] + 49 29 UIKit 0x0027444a -[UIWindow makeKeyAndVisible] + 65 30 UIKit 0x002278e0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1851 31 UIKit 0x0022bfb8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824 32 UIKit 0x0024042c -[UIApplication handleEvent:withNewEvent:] + 3447 33 UIKit 0x00240999 -[UIApplication sendEvent:] + 85 34 UIKit 0x0022dc35 _UIApplicationHandleEvent + 736 35 GraphicsServices 0x036da2eb _PurpleEventCallback + 776 36 GraphicsServices 0x036d9df6 PurpleEventCallback + 46 37 CoreFoundation 0x016b2dd5 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 38 CoreFoundation 0x016b2b0b CFRunLoopDoSource1 + 523 39 CoreFoundation 0x016dd7ec CFRunLoopRun + 2156 40 CoreFoundation 0x016dcb33 CFRunLoopRunSpecific + 467 41 CoreFoundation 0x016dc94b CFRunLoopRunInMode + 123 42 UIKit 0x0022b6ed -[UIApplication _run] + 840 43 UIKit 0x0022d94b UIApplicationMain + 1225 44 TableViewCustomCell 0x00002cbd main + 141 45 libdyld.dylib 0x01d7570d start + 1 46 ??? 0x00000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Program ended with exit code: 0

hyunyoung158 commented 10 years ago

mainStoryboard 의 ViewController 가 이것저것 만지다보니 Class가 내가 생성한 ViewController 클래스를 가리키지 않고, UIViewController를 가리킬 경우 생기는 버그였음. ViewController 로 클래스를 맞춰줍시다.