Comments (4)
你可以看看代码里 NSAssert 的提示,是由于 router 的+canMakeDestination
返回 NO,说明不支持 make destination。一般就是 你的 view router 在重写 +supportedRouteTypes
的时候没有加上ZIKViewRouteTypeMaskMakeDestination
类型。
from zikrouter.
不好意思, 我刚找到, 我也是魔障了, 太不小心了, 刷新的时候, 作者大神已经恢复了, 尴尬~~
from zikrouter.
界面路由是指 protocol 是被 destination 直接实现的。界面模块路由的 protocol 是被 router 的自定义 configuration 实现的。
在用 protocol 传递参数时,可能会有一些复杂的数据参数,这些参数不应该被 destination 接触到,例如 VIPER 中的 view 不应该接触到 model 参数,这时就可以用 module config protocol,先把参数放到 configuration 上,再在 router 内部把参数传给模块的其他组件,例如 把 model 传给 VIPER 中的 interactor。这样就能更好地进行隔离了。
当然如果要求没那么严格,只用界面路由也行。
from zikrouter.
嗯嗯, 谢谢, 这么晚还回复, 已解决.
from zikrouter.
Related Issues (20)
- Demo写的太乱了 HOT 4
- URL Route 必须在 ZIKViewRouter 子类里注册吗 HOT 3
- 语言版本问题 HOT 1
- pod完成,编译报错了,请协助解决 HOT 8
- 'init()' is unavailable: Protocol is not declared as routable HOT 22
- 关于混编 HOT 1
- Compiler error on ZRouter under xCode 10.1 swift 4 HOT 2
- 用起来比较麻烦,写个模块的router需要写很多东西 HOT 2
- ZIKViewRouter.m:2112 Assert 错误
- 大佬,看看这个问题怎么办 HOT 4
- Can not get userinfo from url. HOT 3
- 老哥 template页面404了
- 老铁,创建模板报错 HOT 3
- 这个方案如何做代码隔离?
- iOS 13 获取window方案调整了希望可以修复一下 HOT 1
- 你的Demo运行不起来 HOT 1
- How to get url from a router?
- 有几点疑问,问问作者 HOT 1
- 如果是混编项目则是同时依赖ZIKRouter和ZRouter吗?
- 后续还会继续维护么?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zikrouter.