iOS的7 - 自动布局在iOS 6.0以前的版本 [英] iOS 7 - Auto Layout on iOS Versions prior to 6.0

查看:140
本文介绍了iOS的7 - 自动布局在iOS 6.0以前的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS应用,在iOS 6中。

I have an iOS app that worked well on all devices in iOS 6.

我最近升级我的X code到5.0版本,并试图建立一个iPhone 5于iOS 7相同的应用程序。

I recently upgraded my xcode to version 5.0 and tried to build the same app for iOS 7 on an iPhone 5.

在构建应用程序,在code设置的X code升级的东西,但未能建立与错误。

On building the app, the xCode upgraded something in the code settings, but failed to build with errors.

在iPad的厦门国际银行,我得到一个错误:非法配置:自动布局在iOS 6.0以前的版本。

On the iPad XIB, I get an error : "Illegal Configuration : Auto Layout on iOS Versions prior to 6.0".

我试着启用和禁用在文件检查器使用自动布局复选框,但没有奏效。

I tried enabling and disabling the "Use Autolayout" checkbox in the File Inspector, but it didn't work.

请帮我解决这个问题。

推荐答案

您的问题是,部署目标为您的项目是5.0,你正在使用一个特点,就是不支持iOS 5。

Your problem is that the "Deployment Target" for your project is "5.0" and you are using a feature that isn't available for iOS 5.

选中常规选项卡为您构建目标

Check the "General" tab for your build target

和其更新到至少6.0使用自动布局

and update it to at least 6.0 to use Auto Layout

这篇关于iOS的7 - 自动布局在iOS 6.0以前的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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