如何在故事板或xib中选择背景视图 [英] How to select background views in a storyboard or xib

查看:76
本文介绍了如何在故事板或xib中选择背景视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在故事板或xib中用鼠标选择视图,Xcode将选择最前面的视图。我知道我可以在文档大纲中选择其他视图,但如果我想抓住背景视图用鼠标移动它,当我点击故事板时,最前面的视图会再次被选中。

If I select a view with my mouse in a storyboard or xib, Xcode will select the front most view. I know that I can select the other views in the document outline, but if I want to grab a background view to move it with my mouse, the front most view gets selected again when I click in the storyboard.

我认为有一种方法可以循环浏览视图,并通过按住某些键来选择后面的视图,但我找不到它是什么。有谁知道?

I think there is a way to cycle through the views and select the ones in the back by holding down on some keys, but I can't find what it is. Does anyone know?

我正在使用Xcode 4.6。我知道我也可以使用尺寸检查器移动背景视图,但我正在寻找一种用鼠标定位它们的方法。

I'm using Xcode 4.6. I know that I can also move background views using the size inspector, but I'm looking for a way to position them with my mouse.

推荐答案

一种方法是使用编辑器顶部的跳转栏。它是显示导致当前选择的对象路径的控件。

One way is to use the jump bar at the top of the editor. It's the control that shows the path of objects leading to the current selection.

另一种方法是按 control + shift并左键单击(或右键单击)项目。这会在菜单中显示鼠标下的所有对象,并允许您消除您要选择的对象的歧义。

Another way is to press control+shift and left click (or shift right click) an item. That shows you all of the objects under the mouse in a menu, and allows you to disambiguate the one you meant to select.

这篇关于如何在故事板或xib中选择背景视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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