如何将NIB文件中的对象发送到前/后? [英] How to send objects in NIB files to front/back?
问题描述
如何在Xcode的集成界面构建器中调整对象的z位置(例如,在前面/后面发送 UIImageView
)?
How can I adjust the "z"-positions of objects (e.g. sending UIImageView
s to the front/back) in the integrated interface builder in Xcode?
推荐答案
只是给出一个干净,最新的答案:
Just to give a clean, up-to-date answer to this:
-
选择一个界面对象,然后选择编辑|排列|发送到后面/前面/等,或者
Select an interface object, then "Editor | Arrange | Send to back/front/etc", OR
选择窗口对象,然后单击界面编辑器上方的窗口并选择它包含的对象
Select the window object, then click on 'Window' above the interface editor and select the objects it contains
- 此图片显示了点击的位置:
或者您可以展开对象浏览器,使用窗口对象上的显示三角形,然后从列表中选择: http://i.imgur.com/041xz.png
Or you can expand the object browser, use the disclosure triangle on the window object, and select from the list there: http://i.imgur.com/041xz.png
如果发送到前/后的选项显示为灰色,尝试双击该对象以进行选择顺便说一下
If the option to send to front/back is greyed out, try double-clicking the object to select it.
- 感谢Bryce Thomas在评论中提出的这个建议
或者,对象按照它们出现在对象浏览器列表中的顺序从后到前列出。
Alternatively, the objects are listed from back to front in the order that they appear in the object browser list.
- 例如,将列表中的对象拖到列表中的最后一个插槽中,将其放在前面。
这篇关于如何将NIB文件中的对象发送到前/后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!