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

请教一个有关于全局引用文件的问题 #10

Open
276452915 opened this issue Aug 21, 2016 · 1 comment
Open

请教一个有关于全局引用文件的问题 #10

276452915 opened this issue Aug 21, 2016 · 1 comment

Comments

@276452915
Copy link

之前的OC中 有 pch ,可以全局引用文件,Swift如何实现同样的效果呢?
比如全局引用import UIKit ,避免在每个VC中导入

@SunLiner
Copy link
Owner

SunLiner commented Sep 3, 2016

swift有命名空间的. 只要在同一命名空间内, 未用private声明的, 都是全局的.

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

2 participants