Embed segues acres multiple storyboard
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