In Xcode Interface Builder - why are the options i

2019-03-17 16:22发布

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.

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?

2条回答
太酷不给撩
2楼-- · 2019-03-17 16:42

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.

查看更多
甜甜的少女心
3楼-- · 2019-03-17 16:54

It happens sometimes. In that situation, click the view or image you want to send back then you will see little square box at the edges of image from which you can re size your image, Just click on it once and then go to Editor > Arrange > Choose option according your need.

查看更多
登录 后发表回答