简体   繁体   English

xcode iphone中Storyboard的最低版本

[英]Minimum version for Storyboards in xcode iphone

I am working on Storyboards.I need to know the minimum version of ios that i can set befor making the Build and submit on App store.Can i use ios 4.0 as a target.Will it run on version below ios 5...? 我正在使用Storyboards.I需要知道我可以设置的最低版本的ios,以便在App商店上进行构建和提交。我可以使用ios 4.0作为目标。它将运行在ios 5以下的版本...? Is there any solution to it.? 有什么解决方案吗?

Any help would be appreciated. 任何帮助,将不胜感激。

Thanks Vikas 谢谢Vikas

iOS 5.0 is what introduced Storyboard capabilities. iOS 5.0引入了Storyboard功能。

If you look on this Apple page: 如果您查看此Apple页面:

iOS 5 Release Notes iOS 5发行说明

"Storyboards" is one of the fine new features they introduced with this OS. “故事板”是他们在此操作系统中引入的优秀新功能之一。 It is not backwards compatible. 向后兼容。

If you want to support iOS 4, you must use good ol' XIB files (which will also work in iOS 5 & newer). 如果你想支持iOS 4,你必须使用好的'XIB文件(这也适用于iOS 5及更高版本)。

you may have seen the following error message: Storyboards are unavailable on iOS 4.3 and prior but however, Updating Xcode to the latest version (4.3.1) does not help either. 您可能已经看到以下错误消息: Storyboards are unavailable on iOS 4.3 and prior但是,将Xcode更新到最新版本(4.3.1)也无济于事。

Here is a trick to modify the project for storyboards: iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior 以下是修改故事板项目的技巧: iOS5 Storyboard错误:iOS 4.3和之前的故事板不可用

>Open XXXXXX.storyboard
>
>Open Identity and Type tag in your right view of Xcode.
>
>Set the value of Development in Document Versioning to "Xcode 4.2" (my default value is "Default Version (Xcode 4.1)".
>
>Change the value of Deployment from Project SDK Version (iOS 5.0) to iOS 5.0, then back to Project SDK Version (iOS 5.0)

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

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