xib(Xcode8) 上 UIView/UIImageView 的大小变为 (1000, 1000) [英] The size of UIView/UIImageView on xib(Xcode8) become (1000, 1000)

查看:35
本文介绍了xib(Xcode8) 上 UIView/UIImageView 的大小变为 (1000, 1000)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 xib 上使用自动布局来创建我的用户界面.

I use autolayout on xib to create my UI.

当我完成我的用户界面时.它在模拟器上运行良好.

When I finish my UI. It work well on simulator.

但是当我下次打开Xcode8时,xib显示很奇怪.
一些 UIView 和 UIImageView 变大了.
大小变成 (1000, 1000)

But when I open Xcode8 next time, the xib show strange.
Some UIView and UIImageView become big.
The size become (1000, 1000)

即便如此,当我在模拟器上运行时,它看起来还是不错的.
但是xib不能轻易修改.

Even so, when I run on simulator, it look well.
But the xib cannot be modify easily.

我尝试更新框架.变得更糟了

I try to update the frame. It become worse

我该如何处理?

推荐答案

这是 Xcode8 的问题.这在 Xcode8.1 beta2 中已修复.

It's Xcode8's issues. And that is fixed in Xcode8.1 beta2.

Xcode 8.0 并不总是从故事板和 xib 中恢复视图帧模糊的.Xcode 8.1 修复了其中几个问题.如果您遇到这些问题,请解决自动布局问题和更新框架中的歧义.Xcode 8.1 将正确地保留它们.(28221021, 28244619)

Xcode 8.0 did not always restore view frames from storyboards and xibs when layouts were ambiguous. Xcode 8.1 fixes several of these issues. If you have encountered these issues, resolve the ambiguity in the Auto Layout issues and update frames. Xcode 8.1 will persist them correctly. (28221021, 28244619)

详情见发行说明

这篇关于xib(Xcode8) 上 UIView/UIImageView 的大小变为 (1000, 1000)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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