Latest 0.0.1
Homepage https://github.com/IKTSmart/IKTRouter
License LICENSE
Platforms ios
Frameworks UIKit
Authors

IKTRouter

@(iOS)[路由|IKTRouter]

一行代码实现跳转
IKTRouter 路由

1、目标页面接受参数 声明属性 routerArgs

2、跳转页面响应目标页面回调 声明属性 routerCallBack

无参数页面

(IBAction)everyPagePush:(id)sender {
    [[IKTRouter instalce] pushController:@"UIViewController"];
}

带参数页面

(IBAction)argsPagePush:(id)sender {
    [[IKTRouter instalce] pushController:@"ArgsViewController" Args:@{@"par":@"router"}];
}

回调页面

(IBAction)callBackPagePush:(id)sender {
    [[IKTRouter instalce] pushController:@"CallBackViewController" Args:@{@"po":@"callBack"} CallBack:^(NSDictionary *paramers) {
    NSLog(@"收到回调参数%@",paramers);
}];
}

cocoapods下载

target 'DemoName' do

  pod 'IKTRouter'

end

反馈与建议

  • QQ交流群:314846081

Latest podspec

{
    "name": "IKTRouter",
    "version": "0.0.1",
    "summary": "Router Module for iOS",
    "description": "Simple Router Module for iOS",
    "homepage": "https://github.com/IKTSmart/IKTRouter",
    "license": "LICENSE",
    "authors": {
        "IKT": "E.T.Scorpion"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/IKTSmart/IKTRouter.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "IKTRouter",
        "IKTRouterDemo/IKTRouter/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This