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

RBStoryboardPopoverSegue not working as expected on IB (on Xcode 6) #41

Open
fatuhoku opened this issue Oct 7, 2014 · 2 comments
Open

Comments

@fatuhoku
Copy link

fatuhoku commented Oct 7, 2014

This issue could be totally relevant or duplicate to #39 but I'd like to document it specifically anyway.

There are two view controllers: one storyboard link and one standard view controller, embedded in a navigation controller.

I created a bar button item on the navigationItem and ctrl+dragged it onto the storyboard link. I selected storyboard popover.

When run, it produces this assertion failure:

2014-10-07 18:17:16.432 MyProj[91455:1565416] *** Assertion failure in -[RBStoryboardPopoverSegue perform], /SourceCache/UIKit_Sim/UIKit-3318/UIStoryboardPopoverSegue.m:39
2014-10-07 18:17:37.186 MakeEatSee[91455:1565416] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'RBStoryboardPopoverSegue must be presented from a bar button item or a view.'

And the trace goes way into UIKit:

*** First throw call stack:
(
    0   CoreFoundation                      0x00000001112bd3f5 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000114200bb7 objc_exception_throw + 45
    2   CoreFoundation                      0x00000001112bd25a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x0000000111c4e28f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   UIKit                               0x0000000112c2eed4 -[UIStoryboardPopoverSegue perform] + 323
@fatuhoku
Copy link
Author

fatuhoku commented Oct 7, 2014

Could be related to an IB bug outlined here: http://stackoverflow.com/a/10694868/590767

But I couldn't get it to work following those instructions either.

@fatuhoku
Copy link
Author

fatuhoku commented Nov 3, 2014

I found out that using a STANDARD UIStoryboardPopover into a RBStoryboardLink works! The README should be updated...

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

1 participant