GBModuleMiddleware 2.0.0

GBModuleMiddleware 2.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2017

Maintained by joser.



  • By
  • 15038777234

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How To Use

1. Register in ModuleA Controller

+ (void)load {
    [GBModuleMiddleware registerWithModuleName:@"ModuleA"completionHandle:^(GBModuleMiddlewareForwardType type, UIViewController *sourceController, GBModuleBaseStyle *style) {
        if (type == GBModuleMiddlewareForwardTypePush) {
            GBModuleAViewController *controller = [[GBModuleAViewController alloc] init];
            [sourceController.navigationController pushViewController:controller animated:YES];
        }
    }];
}

2. From ModuleB Push ModuleA

   [GBModuleMiddleware forwareWithModuleName:@"ModuleA" sourceController:self style:nil  forwareType:GBModuleMiddlewareForwardTypePush];

Requirements

Installation

GBModuleMiddleware is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GBModuleMiddleware"

Author

15038777234, [email protected]

License

GBModuleMiddleware is available under the MIT license. See the LICENSE file for more info.