Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example fails when clicking "Modal Test": 'Pushing a navigation controller is not supported' #70

Closed
mts749 opened this issue Oct 8, 2014 · 1 comment

Comments

@mts749
Copy link

mts749 commented Oct 8, 2014

I cloned a fresh version of the repo (October 8, 2014), made no changes and ran the ActionSheetPicker example. I get the following crash if I click the "Modal Test" button:

2014-10-08 17:45:15.042 ActionSheetPicker[8950:1362181] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010be5d3f5 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a8b5bb7 objc_exception_throw + 45
    2   UIKit                               0x000000010929b617 __71-[UINavigationController pushViewController:transition:forceImmediate:]_block_invoke + 0
    3   UIKit                               0x000000010929aca1 -[UINavigationController pushViewController:animated:] + 571
    4   UIKit                               0x00000001091469ee -[UIApplication sendAction:to:from:forEvent:] + 75
    5   UIKit                               0x000000010924cbd0 -[UIControl _sendActionsForEvents:withEvent:] + 467
    6   UIKit                               0x000000010924bf9f -[UIControl touchesEnded:withEvent:] + 522
    7   UIKit                               0x00000001094f0c30 _UIGestureRecognizerUpdate + 9487
    8   UIKit                               0x000000010918c0a6 -[UIWindow _sendGesturesForEvent:] + 1041
    9   UIKit                               0x000000010918ccd3 -[UIWindow sendEvent:] + 667
    10  UIKit                               0x0000000109159ae1 -[UIApplication sendEvent:] + 246
    11  UIKit                               0x0000000109166bad _UIApplicationHandleEventFromQueueEvent + 17370
    12  UIKit                               0x0000000109142233 _UIApplicationHandleEventQueue + 1961
    13  CoreFoundation                      0x000000010bd92ad1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    14  CoreFoundation                      0x000000010bd8899d __CFRunLoopDoSources0 + 269
    15  CoreFoundation                      0x000000010bd87fd4 __CFRunLoopRun + 868
    16  CoreFoundation                      0x000000010bd87a06 CFRunLoopRunSpecific + 470
    17  GraphicsServices                    0x000000010bab89f0 GSEventRunModal + 161
    18  UIKit                               0x0000000109145550 UIApplicationMain + 1282
    19  ActionSheetPicker                   0x0000000109097a23 main + 115
    20  libdyld.dylib                       0x000000010fc9d145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

I've never used storyboards (in my apps I manage the transitions in code). Any ideas what I should do to make fix the example?

@skywinder
Copy link
Owner

It's just a typo, I try to push NavigationController. Now I changed it to modal. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants