简体   繁体   English

如何创建iPhone工具栏-下拉/展开菜单

[英]How to create iphone toolbar - dropdown/expanded menu

What's the best way to create "Expanded toolbar menus"? 创建“扩展工具栏菜单”的最佳方法是什么?

Example: 例:

屏幕截图

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. 您可以在IB中创建它并将其定位,以便使其位于用于调出它的按钮上方。 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. 我可能会将其添加到IB的主视图中,但使其最初处于“隐藏”状态,以便在触摸触发按钮时,您要做的就是取消隐藏该视图。 Or you could load it from its own NIB. 或者,您可以从其自己的NIB加载它。

Luke, I use this on my applications, it's very similar to UIPopoverController and you can use on the iPhone. 卢克,我在我的应用程序中使用了它,它与UIPopoverController非常相似,您可以在iPhone上使用。

https://github.com/werner77/WEPopover https://github.com/werner77/WEPopover

我发现它叫做popover -UIPopoverController-仅在iPad上可用,因此我必须从头开始创建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM