Latest0.0.1
Homepagehttps://github.com/andyfangjunjie/JJRouter
LicenseMIT
Platformsios 7.0, requires ARC
FrameworksUIKit, Foundation
Authors

轻量级路由设计,用法简单

/**
判断url是否可被打开

@param url 需要判断的url
@return 是否可被打开
*/

  • (BOOL)routerCanOpenURL:(NSString *)url;
    /**
    注册url

    @param url url字符串
    @param handler 回调
    */

  • (void)routerRegisterUrl:(NSString *)url handler:(JJRouterHandler)handler;
    /**
    注册错误 做降级处理

    @param handler 打开url时触发的block
    */

  • (void)routerRegisterErrorURLWithHandler:(JJRouterHandler)handler;
    /**
    打开url

    @param url url字符串
    @param viewController 当前控制器
    */

  • (void)routerOpenUrl:(NSString )url viewController:(UIViewController )viewController;
    /**
    打开url

    @param url url字符串
    @param params 参数字典
    @param viewController 当前控制器
    */

  • (void)routerOpenUrl:(NSString )url params:(NSDictionary )params viewController:(UIViewController *)viewController;
    /**
    打开url

    @param url url字符串
    @param viewController 当前控制器
    @param callBack 返回block
    */

  • (void)routerOpenUrl:(NSString )url viewController:(UIViewController )viewController callBack:(JJRouterCallBack)callBack;
    /**
    打开url

    @param url url字符串
    @param params 参数字典
    @param viewController 当前控制器
    @param callBack 返回block
    */

  • (void)routerOpenUrl:(NSString )url params:(NSDictionary )params viewController:(UIViewController *)viewController callBack:(JJRouterCallBack)callBack;

Latest podspec

{
    "name": "JJRouter",
    "version": "0.0.1",
    "platforms": {
        "ios": "7.0"
    },
    "summary": "u8f7bu91cfu7ea7u8defu7531u8bbeu8ba1uff0cu7528u6cd5u7b80u5355",
    "homepage": "https://github.com/andyfangjunjie/JJRouter",
    "license": "MIT",
    "authors": {
        "andyfangjunjie": "[email protected]"
    },
    "source": {
        "git": "https://github.com/andyfangjunjie/JJRouter.git",
        "tag": "0.0.1"
    },
    "source_files": "JJRouter/**/*.{h,m}",
    "requires_arc": true,
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This