IPhone Interface Builder:Z-Index,按钮的Z顺序,图像,ui元素等? [英] IPhone Interface Builder: Z-Index, Z-order of a button, image, ui element, etc?

查看:110
本文介绍了IPhone Interface Builder:Z-Index,按钮的Z顺序,图像,ui元素等?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在界面生成器中拖动...我想指定图像是在前面(如指示符)还是在按钮后面(如背景)。我没有看到任何z-index属性,因为我习惯在其他环境中看到它。如果z-index属性没有
,那么我想要实现的目标是什么?谢谢!

I'm dragging things around in the Interface Builder... I'd like to specify whether an image is in front (like an indicator) or behind of a button (like a background). I don't see any z-index property as I'm used to seeing on other environments. If there isn't a z-index property what is the best way to go about what I'm trying to accomplish? Thanks!

推荐答案

我通过点击一个ui元素(按钮,图像,文本等)实现了我想要的目标布局菜单(在屏幕顶部),然后我使用带到前面,发送到后面等。

I achieved what I wanted by clicking on a ui element (button, image, text, etc) and going to the Layout menu (at the top of screen) and then I used "bring to front", "send to back", etc.

在Xcode 4.2中你会发现菜单顶部的选项:编辑 - >排列

In Xcode 4.2 you'll find the options in menu up top: Editor->Arrange

这篇关于IPhone Interface Builder:Z-Index,按钮的Z顺序,图像,ui元素等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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