简体   繁体   English

如何在storyboard中启动window.xib文件?

[英]How to launch a window.xib file in storyboard?

我是Xcode的新手并构建我的第一个应用程序,我想要合并一个Twitter提要,我的项目是在Storyboard中完成的,但是Twitter提要代码是.xib,有没有一个很好的方法在Storyboard中启动.xib?

There is no real need to launch the window.xib in the storyboard. 没有必要在故事板中启动window.xib。 Just instantiate your view controller that is the file owner of your twitter feed code programmatically and push into your navigation controller. 只需以编程方式实例化您的视图控制器,即您的推文源代码的文件所有者,然后将其推入导航控制器。 It won't cause any problems. 它不会造成任何问题。 The storyboard is basically an extension to the way screens were managed before. 故事板基本上是以前管理屏幕的方式的扩展。 You can have all you "scenes" in storyboard and programmatically push a view controller from outside the storyboard without any problems and navigate back again. 您可以在故事板中拥有所有“场景”,并以编程方式从故事板外部推送视图控制器而不会出现任何问题,并再次导航回来。

The UINavigationController is the key. UINavigationController是关键。 It only cares that it got a UIViewController. 它只关心它有一个UIViewController。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM