在Xcode Interface Builder中 - 为什么编辑器中的选项--->排列菜单(包含发送到前面,发送到后面)经常被禁用? [英] In Xcode Interface Builder - why are the options in the Editor--->Arrange menu (containing Send to Front, Send to Back) often disabled?

查看:82
本文介绍了在Xcode Interface Builder中 - 为什么编辑器中的选项--->排列菜单(包含发送到前面,发送到后面)经常被禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的很简单:在子视图中的图像前面添加标签。

What I'm trying to do is simple: bring a label in front of an image within a subview.

但是当我的标签被选中时,所有排列选项都被禁用/取消选择。我发现这种情况经常发生。

But all of the options for arranging are disabled/un-selectable when my label is selected. I find this happens often.

我几乎从不允许在编配菜单中更改对象的z轴的原因是什么?避免此功能并以编程方式设置视图顺序是一种更好的做法吗?

What could be the reason that I'm almost never allowed to change the z-axis of my objects in the Arrange menu? Is it a better practice to avoid this feature and set the order of views programmatically?

推荐答案

这取决于您选择的方式标签(类似于在某些方面选择时只能用键盘移动标签)。

It can depend on how you have selected the label (similar to how the label can only be moved with the keyboard when selected in some ways).

一个简单的替代方法是查看视图中的视图列表。左侧窗格并上下拖动视图以更改顺序。

A simple alternative is to look at the list of view in the pane on the left and to drag the views up and down to change the order.

这篇关于在Xcode Interface Builder中 - 为什么编辑器中的选项--->排列菜单(包含发送到前面,发送到后面)经常被禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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