如何创建iPhone工具栏-下拉/展开菜单 [英] How to create iphone toolbar - dropdown/expanded menu

查看:74
本文介绍了如何创建iPhone工具栏-下拉/展开菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建扩展工具栏菜单"的最佳方法是什么?

What's the best way to create "Expanded toolbar menus"?

示例:

推荐答案

它似乎只是一个子视图.您可以在IB中创建它并定位它,使其位于用于显示它的按钮上方.我可能会将其添加到IB的主视图中,但最初使其成为隐藏"状态,以便在触摸触发按钮时,您要做的就是取消隐藏该视图.或者,您可以从其自己的NIB加载它.

It looks like it's just a subview. You could create it in IB and position it so that it's over the button that was used to bring it up. I would probably add it to the main view in IB but make it initially "hidden" so that when the trigger button is touched, all you have to do is unhide the view. Or you could load it from its own NIB.

这篇关于如何创建iPhone工具栏-下拉/展开菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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