IOS 5 SDK中的故事板也是针对IOS 4/3的? [英] Storyboard in IOS 5 SDK but also target IOS 4 /3?

查看:101
本文介绍了IOS 5 SDK中的故事板也是针对IOS 4/3的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢使用故事板的想法,但不幸的是,当我尝试使用IOS 4测试时,
我将部署目标更改为IOS 4,我无法再编译它。
它表示 IOS 4.3或更高版本不支持故事板

I love the idea of using storyboards, but unfortunately when I try to test this using IOS 4, I change the deployment target to IOS 4 and I can't compile this anymore. it said that Storyboards is not supported for IOS 4.3 or later.

因此它对使用故事板?
如何使用故事板编写iPhone应用程序以便它们与IOS 4兼容?

So is it useful to use storyboards? How can I write iPhone apps using storyboards so that they can be compatible with IOS 4?

推荐答案

我不知道我认为有一种合理的方法。

I don't think that there's a reasonable way of doing it.

可能以编程方式实例化你的故事板(我想)但是你需要一些东西重新回到iOS5之前的设备上。那会是什么?可能是XIBs ......它也继续在iOS5上运行。你最终会实现两次。所以,正如我所说,它可能是可能的,但它可能不实用。

You could instantiate your Storyboards programatically (I think) but then you'd need something to fall back on on pre-iOS5 devices. And what would that be? Probably XIBs... which also continue to work on iOS5. You'd end up implementing everything twice. So, as I say, it may be possible but it's probably not practical.

这篇关于IOS 5 SDK中的故事板也是针对IOS 4/3的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆