故事板内部不一致 [英] Storyboard Internal Inconsistencies

查看:26
本文介绍了故事板内部不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个线程上有类似的情况解释(XCode 5 Storyboard Internal Inconsistencies),但我安装了最终版本的 Xcode,从未安装过任何测试版.此外,我无法在之前的线程中添加评论,因为我没有足够的积分.所以我需要问我的具体情况.

I have a similar situation explain on this thread (XCode 5 Storyboard Internal Inconsistencies), but I installed the final version of the Xcode and never installed any beta version. Additionally, I can't add comments in previous thread cause I don't have enough points. So i need to ask my specific case.

在 XCode 5 中,我的所有项目都存在问题文档‘main.storyboard’有 X 个已发现并修复的内部不一致.请保存此文档以修复不一致."

In XCode 5, I have a problem with all of my projects "The document 'main.storyboard' has X internal inconsistencies that were found and repaired. Please save this document to fix the inconsistencies."

如果您选择列出不一致之处,您会看到我的资源部分中的某些图像使用了此图像,并且在故事板中重复.我尝试保存文档,但它什么也没做,当我重新启动项目时,我遇到了同样的错误.

If you choose to list the inconsistencies, you see that it's saying that some Images in my resources section, that uses this image, and is duplicating in the Storyboard. I try to save the document, but it does nothing, and when I relaunch the project, I get the same error.

我尝试了所有这些都没有成功:

I try all this things with NO SUCCESS:

  • 我删除了 storyboardFile 文件中的所有重复项.
  • 从我的项目中删除图像文件并重新添加.
  • 将 UIButton 与问题图像重新连接.
  • 更改图像名称文件.

在我的研究中,我还在 XCode 5 中创建了一个新项目,在 Storyboard 内的两个对象中添加了相同的图像并得到了相同的消息.

In my research, also I create a new project in XCode 5, add a same image in two objects inside Storyboard and got the same message.

有人有类似的问题吗?更重要的是,有人有解决方案吗?

Anyone have the similar problem?, and more important, anyone have a solution?

我有 XCode 5 和 OSX 10.8.5.

I have XCode 5 and OSX 10.8.5.

**** 更新 *****我找到了一个解决方法.这个错误是在storyboard里面的一张图片被多次使用的时候产生的,如果你删除了图片的引用,通过代码把图片赋值给对象,这个错误就消失了,但是我不喜欢.我会再研究一点,但显然是 Xcode 的一个错误(我希望不是).

**** UPDATE ***** I found a workaround. The error is generated when one image inside the storyboard is used several times, if you delete the reference of the image and assign the image to the object by code, the error disappears, but I don't like it. I'll research a little more, but apparently is a bug from Xcode (I hope not).

推荐答案

安装 Mavericks 和 Xcode 5.0.1 后,问题得到解决.

After installing Mavericks and Xcode 5.0.1 the problem was fixed.

这篇关于故事板内部不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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