简体   繁体   English

适用于ios4的ios5故事板应用程序

[英]ios5 storyboard application for ios4

I am creating a new application and am planning to start with ios5 as it supports storyboards . 我正在创建一个新应用程序,并计划从ios5开始,因为它支持storyboards However, I am not sure if the app that is compiled with ios5 runs on ios4 as we are looking at kind of a forward compatibility. 但是,我不确定使用ios5编译的应用程序是否可以在ios4运行,因为我们正在研究某种向前兼容性。 Since ARC is a compile time feature, I am guessing that is not a problem. 由于ARC是编译时功能,因此我猜这不是问题。 However, the calls like prepareForSegue or performSegueWithIdentifier depend on ios5 api's. 但是,像prepareForSegueperformSegueWithIdentifier类的调用取决于ios5 api。 However as the code is built, I am wondering if the executable assembly is capable of running on ios4 devices. 但是,随着代码的构建,我想知道可执行程序集是否能够在ios4设备上运行。 Can some please shed some light on this? 可以请一些对此阐明吗?

Also, if the answer is a strict NO, do I need to go back with traditional NIB 's for the app? 另外,如果答案是严格的否,我是否需要使用该应用的传统NIB Are there any selective features that may work and that may not? 是否有任何可能有效的选择性功能?

The UIStoryboardSegue is iOS 5 only, thus the app will not run on iOS 4. Since it not a compile time feature, you will have to go back to using NIB 's. UIStoryboardSegue仅适用于iOS 5,因此该应用程序将无法在iOS 4上运行。由于它不是编译时功能,因此您必须返回到使用NIB

Any methods you use that are only available in iOS 5 will not work in iOS 4, thus meaning that any methods that deal with the storyboard will not work in iOS 4. 您使用的仅在iOS 5中可用的任何方法都无法在iOS 4中使用,这意味着处理情节提要的任何方法在iOS 4中均无法使用。

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

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