Latest 0.1.1
Homepage https://github.com/RichieZhl/UriRouter
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.

Uses

[[UriRouter shared] registerUri:@"helloworld" withBlock:^NSString *(id properties) {
    NSLog(@"call helloworld");
    return @"call helloworld success";
}];
[[UriRouter shared] registerUri:@"alert" withBlock:^id(NSDictionary *properties) {
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        UIAlertController *alert = [UIAlertController alertControllerWithTitle:properties[@"title"] message:properties[@"message"] preferredStyle:UIAlertControllerStyleAlert];
        [alert addAction:[UIAlertAction actionWithTitle:properties[@"ok"] style:UIAlertActionStyleDefault handler:nil]];
        [UriRouter.currentVC presentViewController:alert animated:YES completion:nil];
    });
    return @(YES);
}];
NSLog(@"%@", [[UriRouter shared] openUri:@"helloworld"]);
NSLog(@"%@", [[UriRouter shared] openUri:@"alert" withProperties:@{@"title": @"测试", @"message": @"内容", @"ok": @"确定"}]);
[UriRouter destory];
[[UriRouter shared] openUri:@"helloworld"];

Installation

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

pod 'UriRouter'

Author

RichieZhl, [email protected]

License

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

Latest podspec

{
    "name": "UriRouter",
    "version": "0.1.1",
    "summary": "iOSu7ec4u4ef6u5316u5fc5u5907.",
    "description": "MGJRouteru548cNavigatoru7684u66ffu4ee3u5668.",
    "homepage": "https://github.com/RichieZhl/UriRouter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "RichieZhl": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RichieZhl/UriRouter.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "UriRouter/Classes/**/*"
}

Pin It on Pinterest

Share This