matghazaryan / AMSlideMenu2

Sliding Menu for iOS (Left and Right menus). Multiple storyboards and XIBs support.
MIT License
1.2k stars 194 forks source link

The app crash when the number of rows are bigger than 10 #159

Closed caraldel closed 9 years ago

caraldel commented 9 years ago

Y have the next log issue when I add more than 10 rows to the table at the left slide menu using your code:

2015-07-31 11:53:34.063 [5221:607] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<MainViewController: 0x7f940156ba70>) has no segue with identifier 'rightMenu'' * First throw call stack: ( 0 CoreFoundation 0x000000010975a495 exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001094b999e objc_exception_throw + 43 2 UIKit 0x0000000107800515 -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0 3 UIKit 0x0000000117995352 -[UIViewControllerAccessibility(SafeCategory) performSegueWithIdentifier:sender:] + 39 4 Universitat de ValeÃÄncia 0x000000010709b695 -[AMSlideMenuMainViewController setup] + 917 5 Universitat de ValeÃÄncia 0x000000010709955d -[AMSlideMenuMainViewController viewDidLoad] + 349 6 Universitat de ValeÃÄncia 0x0000000107049476 -[MainViewController viewDidLoad] + 54 7 UIKit 0x00000001077fe59e -[UIViewController loadViewIfRequired] + 562 8 UIKit 0x00000001077fe777 -[UIViewController view] + 29 9 UIKit 0x00000001078152c5 -[UINavigationController _startCustomTransition:] + 628 10 UIKit 0x00000001078206f5 -[UINavigationController _startDeferredTransitionIfNeeded:] + 401 11 UIKit 0x0000000107821238 -[UINavigationController viewWillLayoutSubviews] + 43 12 UIKit 0x000000010793b895 -[UILayoutContainerView layoutSubviews] + 202 13 UIKit 0x00000001179b4040 -[UILayoutContainerViewAccessibility(SafeCategory) layoutSubviews] + 43 14 UIKit 0x0000000107768993 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 354 15 QuartzCore 0x000000010935d802 -[CALayer layoutSublayers] + 151 16 QuartzCore 0x0000000109352369 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 363 17 QuartzCore 0x000000010935d736 -[CALayer layoutIfNeeded] + 162 18 UIKit 0x000000010780ea22 -[UIViewController window:setupWithInterfaceOrientation:] + 264 19 UIKit 0x0000000107745cad -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 4360 20 UIKit 0x0000000107744b9f -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 36 21 UIKit 0x0000000107744aef -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 101 22 UIKit 0x0000000107743dfe -[UIWindow _updateToInterfaceOrientation:duration:force:] + 377 23 UIKit 0x000000010780270a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 147 24 UIKit 0x000000010773eb1b -[UIWindow addRootViewControllerViewIfPossible] + 490 25 UIKit 0x000000010773ec70 -[UIWindow _setHidden:forced:] + 282 26 UIKit 0x0000000117995d73 -[UIWindowAccessibility(SafeCategory) _orderFrontWithoutMakingKey] + 68 27 UIKit 0x0000000107747ffa -[UIWindow makeKeyAndVisible] + 51 28 Universitat de ValeÃÄncia 0x0000000106f7388d -[AppDelegate application:didFinishLaunchingWithOptions:] + 2941 29 UIKit 0x00000001077033d9 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 264 30 UIKit 0x0000000107703be1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1605 31 UIKit 0x0000000107707a0c -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 660 32 UIKit 0x0000000107718d4c -[UIApplication handleEvent:withNewEvent:] + 3189 33 UIKit 0x0000000107719216 -[UIApplication sendEvent:] + 79 34 UIKit 0x0000000107709086 _UIApplicationHandleEvent + 578 35 GraphicsServices 0x000000010b50671a _PurpleEventCallback + 762 36 GraphicsServices 0x000000010b5061e1 PurpleEventCallback + 35 37 CoreFoundation 0x00000001096dc679 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41 38 CoreFoundation 0x00000001096dc44e CFRunLoopDoSource1 + 478 39 CoreFoundation 0x0000000109705903 CFRunLoopRun + 1939 40 CoreFoundation 0x0000000109704d83 CFRunLoopRunSpecific + 467 41 UIKit 0x00000001077072e1 -[UIApplication _run] + 609 42 UIKit 0x0000000107708e33 UIApplicationMain + 1010 43 Universitat de ValeÃÄncia 0x0000000107023c3f main + 111 44 libdyld.dylib 0x0000000109df15c9 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

caraldel commented 9 years ago

I miss to put TableViewCells inside the table in the storyboard.