Latest 0.0.7
Homepage https://github.com/616115891/JYRouter
License MIT
Platforms ios 10.0
Authors

JYRouter 一句话实现各个页面跳转,可解决代码冗余

1.想使用这个路由首先每个控制器需要遵守Routable协议并且实现它的协议

2.他有2种传参模式

1.var params = Parameter()  
  params["title"] = "Keyon"  
  params["userId"] = "123"  
  Router.routeTo("BViewController", params: params)  
2.params["title"] = "Keyon"  
  params["userId"] = "123"  
  Router.routeTo("BViewController?title=Keyon&userId=123", params: params)  

3.读取参数有优先级

如果2个都传了会进行混合,而且2个有相同的字段那么会优先读取自身传进去的参数

4.使用(因为JYRouter被使用了)

 pod 'YJYRouter'

Latest podspec

{
    "name": "YJYRouter",
    "version": "0.0.7",
    "summary": "swiftu7684u8defu7531.",
    "description": "u81eau5df1u5199u7684u4e00u4e2aswiftu7684u8defu7531",
    "homepage": "https://github.com/616115891/JYRouter",
    "license": "MIT",
    "authors": {
        "Keyon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/616115891/JYRouter.git",
        "tag": "0.0.7"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Source",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This