iOS 7:错误放置的视图框架为“标签 - 标签”在运行时会有所不同 [英] iOS 7: Misplaced View Frame for "Label - Label" will be different at run time

查看:104
本文介绍了iOS 7:错误放置的视图框架为“标签 - 标签”在运行时会有所不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在iOS 6上完成了一个应用程序,并在一周前买了一个开发者帐户,所以没有多少时间玩iOS 7 SDK。刚刚下载了Golden Master版本并尝试升级我的应用程序以与iOS 7兼容。

I just finished an app on iOS 6 and bought a developer account a week ago so haven't had much time playing with the iOS 7 SDK. Just downloaded the Golden Master version and trying to upgrade my app to be compatible with iOS 7.

我收到很多警告说


标签 - 标签的错位视图框在运行时会有所不同。

Misplaced View Frame for "Label - Label" will be different at run time.

我无法运行该程序。该项目包含tableview,它正在解析和显示来自RSS的XML feed。

and I am unable to run the program. The project contains tableview and its is parsing and displaying XML feed from an RSS.

如何解决这个问题?

推荐答案

我有同样的问题问题,我得到以下回复表格Apple:

I had the same issue and I get below response form Apple:


您需要更新约束以匹配这些视图的帧。

You need to update the constraints to match the frames of these views.

我做了以下事情:

编辑器 - >解决自动布局问题 - >清除**视图控制器中的所有约束

然后我在视图中再次重新排序我的对象。

then I reordered my objects again in the view.

PS:首先尝试Enrico的解决方案。

PS: Try Enrico's solution first.

这篇关于iOS 7:错误放置的视图框架为“标签 - 标签”在运行时会有所不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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