是否已准备好并推荐在 Xcode 4.2 生产中使用故事板? (参见之前的 XIB 方法)
是否已准备好并推荐在 Xcode 4.2 生产中使用故事板?
也就是说,使用过 Storyboard 的 iPhone/iPad 开发人员会建议(对于本机 iPhone/iPad 应用程序)一定要使用 Storyboard 吗?或者这个概念仍然存在一些陷阱和问题?
PS 故事板还有助于设计/运行通用应用程序吗?
Is the use of storyboards in Xcode 4.2 production ready and recommended?
That is, would iPhone/iPad developers that have used storyboards recommend (for native iPhone/iPad apps) to definitely use storyboards? Or are there some gotchas and issues still with the concept?
P.S. Also do storyboards assist in getting a Universal Application designed/working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这在很大程度上取决于您的目标受众。唯一潜在的问题是,使用 Storyboard 需要您将应用程序的部署目标设置为 iOS 5.0 或更高版本;故事板应用程序无法在任何早期版本的 iOS 上运行。
如果您必须迎合以前版本的 iOS,并且使用 Interface Builder 设计界面,则必须继续使用单独的 nib 文件。我还建议坚持使用您在现有项目中已经使用的任何内容。 (您可以分步将故事板引入到现有项目中,但请记住它们仅适用于 iOS 5。有一个 WWDC 2011 演示文稿将引导您完成此过程。)
对于新项目,故事板似乎是最佳选择,只要您确定不需要部署到以前的 iOS 版本。
不确定“协助”是什么意思,但您必须为每个设备系列创建一个笔尖故事板。因此,一款适用于 iPhone/iPod touch,一款适用于 iPad。
This depends, for the most part, on your target audience. The only potential deal-breaker is the fact that using storyboards requires you to set your app's deployment target to iOS 5.0 or later; a storyboarded app cannot run on any earlier version of iOS.
If you must cater to previous versions of iOS, you have to continue using individual nib files if designing your interface with Interface Builder. I'd also recommend sticking with whatever you're already using in your existing projects. (You can introduce storyboards into your existing projects in steps, but remember that they'll only work in iOS 5. There's a WWDC 2011 presentation that walks you through this process.)
For new projects, storyboards seem to be the way to go, as long as you're sure you won't need to deploy to previous iOS versions.
Not sure what you mean by "assist", but you have to create one storyboard of nibs for each device family. So one for iPhone/iPod touch, and one for iPad.
如果您只针对 iOS 5,那么了解您错过了多少市场将会很有趣。我注意到有很大比例的 iPhone 用户不会升级 iOS,无论是从 iOS 3 升级到 iOS 4,甚至是 iOS 5 因此,任何针对 iOS 5 的应用程序都将意味着它们无法下载您创建的任何应用程序。
我开始使用带有故事板的 iOS 5,这是一个很棒的功能,但不得不回退并使用 xibs,以便获得向后兼容性。仅针对 iOS 5,您会错过太多的市场。ARC
是一个很大的优势,仅就该功能而言,我对向 iOS 5 的过渡感到满意。更不用说现在新的 CLGeoCoder 类和 JSON包括。 任何想要使用 JSON API 的人都可以看看这个很棒的教程雷·文德利希。
It would be interesting to know how much of the market you are missing out on by targeting only iOS 5. I have noted that there is a significant percentage of iPhone users who dont upgrade their iOS be it from iOS 3 to iOS 4 or even iOS 5 so any apps targeting iOS 5 will mean they can not download any app you create.
I started out using iOS 5 with storyboard and it's a great feature, but had to pull back and use xibs so that I get backwards compatibility. There's just too much of the market you will miss out on by only targeting iOS 5.
ARC is a great plus, and just for that feature alone I am happy with the transition to iOS 5. Not to mention the new CLGeoCoder class and JSON now included. Anyone who wants to use JSON API have a look at this great tutorial from Ray Wenderlich.