关于 JLRoutes

参考链接

页面路由 在app开发中 常使用

比如

1,点击推送的消息,直接进入消息对应详情页面

2,从微信、safari 唤起app 并进入到app的某个目标页面

先看下 JLRoutes提供的api

实际上 JLRoutes 只是提供URL的解析,路由到哪里去 完全是业务逻辑

来 实现它: 我的app是基于UITabBarController

step1,管理好你的NavigationController

Step2:在跳转之前 我们常需要

a,要么在topViewController.navigationController进行目标页面的跳转

b,在最‘根’上进行跳转(这里遇到最常见的一个问题:dismiss和push函数‘一起’调用)

Unbalanced calls to begin/end appearance transitions

Step3:目标页面跳转

https://github.com/joeldev/JLRoutes

More information on how to register custom URL schemes in your application's Info.plist.

原文地址:https://www.cnblogs.com/xzoscar/p/4991770.html