将视图从 xib 更改为故事板

问题描述:

我有一个 Storyboard 项目,我需要在启动时加载一个 xib 文件,以显示登录屏幕.它基于 UIWindow 和视图控制器,所以我不能让它在故事板中工作.无论如何,在开始加载此 xib 之后,是否有将视图推入故事板的方法?

I have a Storyboard project witch i need to have an xib file loading on startup, to show a login screen. Its based on a UIWindow and a view controller so i dont get it to work in storyboard. Anyways is there anyway that after this xib is loaded at start to push the view in to story board?

如果我有任何不同,故事板是基于 Tabbar 的.

the storyboard is Tabbarbased if i does any difference.

谢谢.

我认为这可以解决您的问题:如何从课堂上以编程方式加载故事板?

I think this would solve your problem : How can I load storyboard programmatically from class?

绝对有可能.