xcode 故事板不会接受更改 [英] xcode storyboard won't accept changes

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

问题描述

我的故事板似乎被锁定了.我在两个不同的场景中添加了新标签和图像视图,但在运行时标签和图片不显示.(所有原始项目都正确显示.)我尝试过 Clean、Build 和 Building for Running、Testing 和 Profiling.我已将整个项目复制到另一台 Mac.它运行程序,接受代码更改,但此 Mac 也不允许更改故事板.(不添加条目,不改变原始条目的位置.)就像故事板被锁定以进行编辑.

My storyboard seems locked. I have added new labels and imageviews to two different scenes, but at runtime the labels and pictures don't show. (All original items are displayed correctly.) I have tried Clean, Build, and Building for Running, Testing, and Profiling. I have copied the entire project to another Mac. It runs the program, accepts changes in the code, but this Mac, too, will not allow changes in the storyboard. (No added items, no changing the position of original items.) It's as if the storyboard is locked for editing.

我搜索了有关故事板锁定的信息,但找不到任何似乎适用于我的信息(即,我不是从事同一程序的团队中的一员.)

I've searched for info on storyboard locking but can't find anything that seems to apply to me (i.e. I'm not one of a team working on the same program.)

我很感激任何想法.

(第二台 Mac 上的 Xcode 4.2,最初出现问题的 Xcode 4.3.2.)

(Xcode 4.2 on the 2nd Mac, Xcode 4.3.2 on the original where the problem first arose.)

推荐答案

我遇到了同样的问题,并意识到我正在使用 Localization Locking 设置,它位于 Interface Builder Documents 下的右侧菜单中.

I had the same issue, and realized that I was playing with the Localization Locking setting, which is located on the right hand side menu under Interface Builder Documents.

如果您希望能够对故事板进行更改,请确保所选设置为 Nothing.

Make sure that the selected setting is Nothing if you want to be able to make changes to your storyboard.

希望这会有所帮助.

这篇关于xcode 故事板不会接受更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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