简体   繁体   English

没有情节提要的选项卡栏应用程序

[英]Tab bar application without storyboard

I want to create tab bar application which should also work on older versions of iOS. 我想创建一个标签栏应用程序,该应用程序也应在旧版本的iOS上运行。 The problem is older version does not support storyboard. 问题是较旧的版本不支持情节提要。 And when I try to create one project without storyboard it wont let me allow to access tab bar item in .xib file. 当我尝试创建一个没有情节提要的项目时,它不会允许我访问.xib文件中的选项卡栏项。 So how can create an application which is compatible with older versions of iOS and easy to design? 那么,如何创建与旧版本的iOS兼容且易于设计的应用程序呢?

Thanks.. 谢谢..

Application created with storyboard also support older iOS versions. 使用情节提要创建的应用程序还支持旧的iOS版本。 But if you want to go by old xib way just uncheck the use storyboard option at the beginning when you create your project. 但是,如果您想采用旧的xib方式,只需在创建项目时在开始时取消选中“使用情节提要”选项即可。 You will then have to add UITabbarController manually in applicationDidLaunch method. 然后,您将不得不在applicationDidLaunch方法中手动添加UITabbarController。 Feel free to comment if you want detailed answer. 如果您想要详细的答案,请随时发表评论。

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

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