Latest 0.0.1
Homepage https://github.com/wangyin1/YINRoute
License MIT
Platforms ios 8.0
Authors

app模块化路由管理器,app间urlscheme访问管理器

调用示例

id call = ^(NSString *aa){
NSLog(@"%@",aa);
};
[[YINRouteManager shareInstance] pushVcName:@"LoginViewController" from:self withData:@{@"callBack":call,@"name":@"test"}];  

设置特殊路由标示


@implementation LoginViewController
  • (void)load{
    //设置了路由标示后 既可以通过类名访问 也可以通过标示访问
    [self y_registPath:@"login"];
    }

    
    controller分类方法快捷调用
//页面跳转
[self y_pushVcName:@"LoginViewController" withData:@{
                                                         @"name":@"12323121"
                                                         }];

[self y_pushVcName:@"login" withData:@{
                                                         @"name":@"12323121"
                                                         }];

url形式访问模块 此方法同时支持app 内模块间访问 也支持app之间的访问

开启url访问功能
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.

    [YINRouteManager startWithUrlSchemes:@[@"YINRouteDemo"] pageHost:@"open" actionHost:@"action" actionBlock:^(NSString *actionName, id data) {
        NSLog(@"执行方法%@",actionName);
        NSLog(@"参数%@",data);
    }];

    return YES;
}

访问页面

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"BLBaseAPP://open/LoginViewController?name=123213&pass=123"]];

执行方法

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"BLBaseAPP://action/logPrint?name=123213&pass=123"]];

Latest podspec

{
    "name": "YINRoute",
    "version": "0.0.1",
    "summary": "appu6a21u5757u5316u8defu7531u7ba1u7406u5668uff0cappu95f4urlschemeu8bbfu95eeu7ba1u7406u5668",
    "description": "appu6a21u5757u5316u8defu7531u7ba1u7406u5668uff0cappu95f4urlschemeu8bbfu95eeu7ba1u7406u5668. u6a21u5757u5316u53efu4ee5u5c06u4ee3u7801u7684u529fu80fdu903bu8f91u5c3du91cfu5c01u88c5u5728u4e00u8d77uff0cu5bf9u5916u53eau63d0u4f9bu63a5u53e3uff0cu4e1au52a1u903bu8f91u4ee3u7801u4e0eu529fu80fdu6a21u5757u901au8fc7u63a5u53e3u8fdbu884cu5f31u8026u5408u3002u8bbeu8ba1u7684u4e00u5957u7b26u5408u8981u6c42u7684u7ec4u4ef6u4e4bu95f4u901au4fe1u7684u4e2du95f4u4ef6",
    "homepage": "https://github.com/wangyin1/YINRoute",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "wangyin1": ""
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/wangyin1/YINRoute.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This