我如何 'Lock Selection' 喜欢 Xcode StoryBoard 中的 Photoshop

How do I 'Lock Selection' like Photoshops in Xcode StoryBoard

当我编辑 ImageViewUIButton 或 StoryBoard Canvas 上的其他对象时, select 他们背​​后的层很难。我想为顶层锁定 selection,例如 Photoshop,或者在 3DMax 中,即所谓的 Freeze Selection .

Freeze Selection 说明:

You can freeze any selection of objects in your scene. By default, frozen objects, whether wireframe or rendered, turn a dark gray. They remain visible, but can’t be selected, and therefore can’t be directly transformed or modified. Freezing lets you protect objects from accidental editing and speeds up redraws.

Shift + Right Mouse Button 到 select。它将以有序列表的形式向您显示当前鼠标光标下的所有对象。

注意:这不会锁定任何东西,但会使 selection 对您来说更容易。

Update: 在Identity Inspector中,有一个Lock 属性.如果您将此设置为 所有属性,那么即使您移动对象,它也会恢复到其锁定位置。但是它不会在这个对象上锁定 selection,也不会让你无法 select 它。

目前您能做的最好的事情就是将上方视图切换为“非”Installed,此时有问题的视图将完全消失,直到您再次打开它

缺点是很容易将其卸载并在您的应用程序中引入错误。这种情况的唯一指示通常是项目文件中的警告。