Giter Club home page Giter Club logo

Comments (4)

Zuikyo avatar Zuikyo commented on August 21, 2024

你可以看看代码里 NSAssert 的提示,是由于 router 的+canMakeDestination返回 NO,说明不支持 make destination。一般就是 你的 view router 在重写 +supportedRouteTypes的时候没有加上ZIKViewRouteTypeMaskMakeDestination类型。

from zikrouter.

JanXu-Dev avatar JanXu-Dev commented on August 21, 2024

不好意思, 我刚找到, 我也是魔障了, 太不小心了, 刷新的时候, 作者大神已经恢复了, 尴尬~~

from zikrouter.

Zuikyo avatar Zuikyo commented on August 21, 2024

界面路由是指 protocol 是被 destination 直接实现的。界面模块路由的 protocol 是被 router 的自定义 configuration 实现的。
在用 protocol 传递参数时,可能会有一些复杂的数据参数,这些参数不应该被 destination 接触到,例如 VIPER 中的 view 不应该接触到 model 参数,这时就可以用 module config protocol,先把参数放到 configuration 上,再在 router 内部把参数传给模块的其他组件,例如 把 model 传给 VIPER 中的 interactor。这样就能更好地进行隔离了。
当然如果要求没那么严格,只用界面路由也行。

from zikrouter.

JanXu-Dev avatar JanXu-Dev commented on August 21, 2024

嗯嗯, 谢谢, 这么晚还回复, 已解决.

from zikrouter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.