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

私有库中的xib如何调用? #113

Open
JessieHu opened this issue Mar 14, 2018 · 1 comment
Open

私有库中的xib如何调用? #113

JessieHu opened this issue Mar 14, 2018 · 1 comment

Comments

@JessieHu
Copy link

如果页面是用 xib 实现的, 且这个 xib 是放在私有库中的, 请问如何调用呢?

@MemoryReload
Copy link

@JessieHu 在提问前先搞清楚,你问的东西是什么。xib是不能被调用的,它是一种静态文件格式。类似于Android的layout xml,属于静态的界面文件。当代码执行时,通过NSBundle,xib会被加载到内存中,initWithNib,然后初始化,awakeFromNib,然后就是内存对象了。如果你要修改xib中的东西,你完全可以在运行时修改,为什么要对一个静态文件如此痴迷。最重要的是,你所说的调用xib这种事情,是不存在的,解释完毕。

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