将视图从 xib 更改为故事板 [英] Changing view from xib to storyboard

查看:39
本文介绍了将视图从 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?

绝对有可能.

这篇关于将视图从 xib 更改为故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆