使用Storyboard VS .xib(XCode 5) [英] Using Storyboard VS .xib (XCode 5)

查看:132
本文介绍了使用Storyboard VS .xib(XCode 5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个问题,而不是一个问题代码..
我是新的iOS开发,我正在寻找提交一个应用程序,我创建到苹果商店。我一直在辩论是否使用.xib(nib)文件或故事板。我目前使用.xib文件,但考虑更改它。哪一个通常最好从你的意见?应用商店会接受在故事板中制作的应用吗?我听说它不是向后兼容早期的iPhone版本,并希望尽可能安全地播放。
谢谢你们:)

This is more of a question than an issue with code.. I'm new to iOS developing and I am looking to submit an app I'm creating to the Apple Store. I have been debating whether to use .xib(nib) files or storyboard. I am currently using .xib files but considering changing it. Which one is generally best from your opinion? And will the app store accept apps made in storyboard? I've heard of it not being backwards compatible with earlier iPhone versions and want to play it as safe as possible. Thanks guys :)

推荐答案

因此,故事板可用于iOS 5及更高版本,因此如果您要提交应用程序兼容iOS 5之前的版本,你不能这样做,主要是因为你必须设置你的目标,并会产生大量的错误,因为故事板。

So storyboards are available for iOS 5 and above, so if you want to submit an app compatible for versions prior iOS 5, you can't do it mainly because you have to set your target and that will generate lots of errors because of storyboards.

绝对不会拒绝你的应用程序,因为它使用故事板,实际上,苹果人建议使用故事板。

App store definitely won't reject your app because it's using storyboards, actually Apple guys recommend using storyboards.

关于xib vs storyboards ...我通常使用storyboards和xib文件,取决于项目。有了storyboards,你不必编写push / pop / present视图控制器的代码,从我的意见,storyboards更干净,他们可以向您呈现应用程序的主要流程,使调试更容易。

Regarding the xib vs storyboards... I generally use storyboards and also xib files depending on the project. With storyboards you don't have to write the code for push/pop/present view controllers and from my opinion, storyboards are cleaner and they can present you the main flow of the app, making debug much easier.

关于向后兼容,这个概念向后兼容不存在于iOS :))。我不知道在新版本的iOS中引入的新功能向后兼容。

Regarding the backwards compatible, this concept "backwards compatible" is not present on iOS :)). I don't know a new feature introduced into a new version of iOS that is backwards compatible.

这篇关于使用Storyboard VS .xib(XCode 5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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