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

Embed segues acres multiple storyboard #74

Open
LuisDrmn opened this issue Nov 24, 2015 · 0 comments
Open

Embed segues acres multiple storyboard #74

LuisDrmn opened this issue Nov 24, 2015 · 0 comments

Comments

@LuisDrmn
Copy link

Hey i'm trying to use RBStoryboardLink with embed segues, i know that the apple doesn't support custom embed segue that's why you need to tweak a few things.

So first i wrote a subclass of RBStoryboardSegue:

@interface RBStoryboardEmbedSegue : RBStoryboardSegue
@end


@implementation RBStoryboardEmbedSegue
- (void)perform {
    UIViewController* source = self.sourceViewController;
    UIViewController* destination = self.destinationViewController;
    [source addChildViewController:destination];
    [source.view addSubview:destination.view];
    [destination didMoveToParentViewController:source];
}
@end

I got my container view in my parent VC, with the embed segue targeting the other VC with the class RBStoryboardLink and the Runtime Attributes setup and the embed segue with an unique identifier.

Since i can't put a custom class to the embed segue in the Interface Builder, i have to switch to XML to change the
<segue destination="O7R-ZB-Bpn" kind="embed" identifier="RecordPerfEmbeded" id="Blh-pN-nPi"/>
in
<segue destination="O7R-ZB-Bpn" kind="embed" identifier="RecordPerfEmbeded" customClass="RBStoryboardEmbedSegue" id="Blh-pN-nPi"/>

But even doing that looks like my subclass of RBStoryboardSegue, RBStoryboardEmbedSegue, is never called. And i don't know why, maybe i forgot to check something on Pods.
I'm looking for a little extra help please or another way to do that.

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

1 participant