iOS 9.0之前的UIStackView [英] UIStackView before iOS 9.0

查看:67
本文介绍了iOS 9.0之前的UIStackView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将XCode升级到最新版本7.0 beta 3(7A152u)。

I recently upgraded XCode to the latest Version 7.0 beta 3 (7A152u).

我正在使用Swift构建iPhone应用程序,当我尝试使用堆栈时在Main.storyboard中查看我收到错误 iOS 9.0之前的UIStackView

I am using Swift for building an iPhone app and when I try to use a Stack View in Main.storyboard I get the error "UIStackView before iOS 9.0".

我认为升级到Xcode 7 beta 3,我拥有iOS 9.请更正我的理解,因为我对Swift开发很新。

I thought with the upgrade to Xcode 7 beta 3, I have iOS 9. Please correct my understanding as I am quite new to Swift development.

推荐答案

签入项目目标 - >部署信息 - >部署目标。如果不是9.0,则将其更改为9.0。

Check inProject Targets-> Deployment info -> Deployment Target.If it's not 9.0 change it to 9.0.

您需要将应用程序目标的部署目标更改为iOS 9.否则,应用程序支持您的部署目标所设置的任何操作系统。

You need to change the deployment target of your application's target to iOS 9. Otherwise the app supports down to whatever OS that your deployment target is set to.

未解决?检查其他原因???检查一下:

如果您的部署目标已设置为9.0并且仍然出现此错误,请尝试检查项目文件督察>项目文件 - >项目格式并检查它是否与 Xcode-6.3兼容。如果不是,则将其设置为 Xcode-6.3兼容

If your Deployment target is already set to 9.0 and you still get this error then try then check your project File inspector-> Project Document -> Project Format and check if its Xcode-6.3-compatible or not.If its not then set it to Xcode-6.3-compatible.

另一个原因可能是你不小心添加了 UIStackView 那就是那个你为什么遇到这个问题。 UIStackView 支持9.0及更高版本,您的部署目标不允许这样做。所以,只要检查一下你是否意外添加了 UIStackView ,如果你添加了它而你不想要它而不仅仅是删除它。

The other reason is may be you accidentally add UIStackView and thats why you encounter the problem. UIStackView supports 9.0 and later and your deployment target doesn't allow that. So just check if you accidentally add UIStackView and if you added and you don't want it than just remove it.

注意:将部署目标设置为9.0意味着只有运行iOS9的设备才能运行您的应用程序

Note: setting the deployment target to 9.0 means that only devices running iOS9 will be able to run your app

这篇关于iOS 9.0之前的UIStackView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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