UITabBar之上的UIToolBar吗? [英] UIToolBar on top of UITabBar?

查看:62
本文介绍了UITabBar之上的UIToolBar吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在照片"应用程序的相机胶卷"部分中,您可以单击右上角的按钮来编辑照片.它将底部的标签栏替换为UIToolBar中的三个新按钮.

When in the Camera Roll section of the Photos app, you can click the top right button to edit the photos. This replaces the bottom tab bar with three new buttons which are in a UIToolBar.

我想做类似的事情,但是我无法使UIToolBar出现在选项卡栏的顶部.有没有办法指定图层顺序?还是我需要做些不同的事情?

I would like to do something similar, but I cannot get my UIToolBar to be on TOP of the tab bar. Is there a way to specify the layer order? Or do I need to do something different?

推荐答案

您可以将工具栏添加为关键窗口的子视图:

You may be able to add the toolbar as a subview of your key window:

[[[UIApplication sharedApplication] keyWindow] addSubview:toolbarView]

这篇关于UITabBar之上的UIToolBar吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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