简体   繁体   English

故事板和视图控制器

[英]Storyboard and View Controller

I've created an app with Xcode but I've a problem with a View Controller. 我已经用Xcode创建了一个应用程序,但是View Controller出现了问题。 In my project file I have a photogallery with the ".xib" extension, I've moved it into the storyboard because I need a tab-based application, but when I run for testing my project I can see only the View Controller, without the tab bar and the other items. 在我的项目文件中,我有一个带有“ .xib”扩展名的相册,因为需要基于标签的应用程序,所以将其移到情节提要中,但是当我运行项目进行测试时,只能看到视图控制器,而没有标签栏和其他项目。 Why can't I see my storyboard? 为什么看不到情节提要? I hope you can help me. 我希望你能帮助我。

Most probably you still have a reference to your "Main Interface" in your App-Settings. 最有可能您仍然在应用程序设置中引用了“主界面”。 Click on the XCode project - Summary - iPhone / iPod Deployment Info. 单击XCode项目-摘要-iPhone / iPod部署信息。

Unter "Main Storyboard" you should have a reference to your storyboard. 在“主情节提要”下,您应该对您的情节提要进行引用。 Eg: MainStoryboard 例如: MainStoryboard

Make sure that "Main Interface" remains empty. 确保“主界面”保持为空。

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

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