Latest 0.1.0
Homepage https://github.com/VioletHill/QIURouter
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {      
    [QIURouter map:@"second" toController:[QIUSecondViewController class]];
}

Your ViewController

@interface QIUSecondViewController ()
@end

@implementation QIUSecondViewController

//+ (instancetype)loadFromStoryboard
//{
//    
//}

// or

+ (instancetype)loadFromStoryboard:(NSDictionary *)parms
{
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    QIUSecondViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"QIUSecondViewController"];
    viewController.label.text = parms[@"text"];
    return viewController;
}

@end

Then, you can use

[QIURouter open:@"second" params:@{@"text": @"Param from ViewControlelr",
                                       @"viewControllerTitle": @"titleFromFirstViewController"} withViewController:self];

Requirements

iOS 8.0

Xcode 8

Installation

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

pod "QIURouter"

Author

QiuFeng, [email protected]

License

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

Latest podspec

{
    "name": "QIURouter",
    "version": "0.1.0",
    "summary": "Router",
    "description": "A Router for navigation",
    "homepage": "https://github.com/VioletHill/QIURouter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "QiuFeng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/VioletHill/QIURouter.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "QIURouter/Classes/**/*"
}

Pin It on Pinterest

Share This