xcode iphone 中故事板的最低版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10877160/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Minimum version for Storyboards in xcode iphone
提问by Vikas Ojha
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...? Is there any solution to it.?
我正在开发 Storyboards。我需要知道我可以设置的最低 ios 版本,以便在 App store 上进行构建和提交。我可以使用 ios 4.0 作为目标吗。它会在低于 ios 5 的版本上运行吗...?有什么解决办法吗。?
Any help would be appreciated.
任何帮助,将不胜感激。
Thanks Vikas
谢谢维卡斯
回答by Michael Dautermann
iOS 5.0 is what introduced Storyboard capabilities.
iOS 5.0 引入了 Storyboard 功能。
If you look on this Apple page:
如果您查看此 Apple 页面:
"Storyboards" is one of the fine new features they introduced with this OS. It is notbackwards 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,你必须使用好的 ol'XIB 文件(它也适用于 iOS 5 及更新版本)。
回答by Abby Chau Yu Hoi
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 情节提要错误:情节提要在 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)