CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Oct 2016 |
Maintained by Andrey Zarembo, Egor Tolstoy.
RamblerSegues is a collection of custom UIStoryboardSegue subclasses useful in different everyday situations.
UIViewControllers as easy as it should be.UIStoryboards - this segue is your perfect choice.UIView on your parent UIViewController - this view will suit as a container for a child module. Connect it to IBOutlet with name embedSegueContainer.Add a segue with class RamblerEmbedSegue from parent UIViewController to child UIViewController. Set its identifier to EmbedSegueExample.
Implement a method - (UIView*)viewForEmbedIdentifier:(NSString*)embedIdentifier in parent UIViewController and return embedSegueContainer in it:
- (UIView*)viewForEmbedIdentifier:(NSString*)embedIdentifier {
if ([embedIdentifier isEqualToString:@"EmbedSegueExample"]) {
return self.embedSegueContainer;
}
return nil;
}Router using ViperMcFlurry.Add a new empty UIViewController on the first storyboard. Set its class to RamblerPlaceholderViewController and restoration identifier to SecondViewController@AnotherStoryboard.
CrossStoryboardSegueExample and identifier CrossStoryboardSegueExample from parent UIViewController to this placeholder.AnotherStoryboard. Set its Storyboard ID to SecondViewController.Enjoy once again - you can use this segue just as usual one, but instead it will open UIViewController from another storyboard:
[self performSegueWithIdentifier:@"CrossStoryboardSegueExample" sender:self];You can test both segues in the example project - clone the repo, and run pod install from the Example directory first.
RamblerSegues is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RamblerSegues"RamblerSegues is available under the MIT license. See the LICENSE file for more info.
Andrey Zarembo-Godzyatskiy, [email protected]