iOS 9.0之前的UIStackView

编程入门 行业动态 更新时间:2024-10-06 04:12:09
本文介绍了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

本文发布于:2023-11-26 21:46:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635315.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:iOS   UIStackView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!