Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没搞懂swift项目何时注册url #2

Open
FSSY opened this issue Jul 6, 2019 · 3 comments
Open

没搞懂swift项目何时注册url #2

FSSY opened this issue Jul 6, 2019 · 3 comments

Comments

@FSSY
Copy link

FSSY commented Jul 6, 2019

oc可以在load注册,swift怎么办?

@821385843
Copy link
Owner

可以看demo,demo中给了一种简单的解决办法。如果有什么更好的办法,欢迎留言,感谢

@Coder-Star
Copy link

可以看demo,demo中给了一种简单的解决办法。如果有什么更好的办法,欢迎留言,感谢

感觉Demo中的方法需要各组件提供一个静态方法用于注册这个组件中所有的url ,然后在AppDelegte中进行调用,这样主工程就会与组件产生耦合

@821385843
Copy link
Owner

已经添加load注册

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants