iPhone 上的 UITabBar 项目上的悬停菜单

发布于 2024-12-09 13:09:24 字数 383 浏览 3 评论 0原文

我正在寻求实现一个临时的悬停菜单,该菜单会在 iPhone 上的 UITabBar 项目上自动消失(通过计时器或用户手动点击)。

我研究过 WEPopover 库,但它并没有我希望的那么有用适合我的用例。

我看到移动网站一直都能达到我想要的效果,但我有兴趣在 Cocoa Touch 中复制此功能(尽管使用频率低于看起来),以作为应用程序中的首次运行指南。

Example Image

有人对我应该探索如何实现这一点有任何想法吗?

I'm looking to implement a hover menu that is temporary and will automatically fade away (either with a timer or by the user tapping on it manually) over a UITabBar Item on the iPhone.

I've looked into the WEPopover library but it wasn't quite as helpful as I would have liked it to be for my use case.

I see mobile websites achieve my desired effect all the time but am interested in duplicating this functionality (albeit to use it less frequently than they seem to) in Cocoa Touch for a first-run sort of guide in an app.

Example Image

Anyone have any ideas I should explore in how to go about implementing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情深如许 2024-12-16 13:09:24

我认为这个问题确实没有什么好的答案。为了实现这一点,您必须实现自己的 UI(可能与 UITabBar 的子类相关)。实际的弹出 UI 可能存在于任意数量的第三方代码中,但您必须提出自己的系统。一个“简单”的解决方案是将这些弹出视图放置在应用程序窗口上,以便它们可以出现在所有其他 UI 元素之上。您还可以创建一个管理器类来控制这些元素的呈现、消除和计时。

There's really no good answer to this, I don't think. You're going to have to implement your own UI, possibly in connection with a subclass of UITabBar, in order to achieve this. The actual popup UI probably exists in any number of third-party code, but you'd have to come up with your own system. A "simple" solution would be to place these popup views on the application window so they could appear atop all other UI elements. You'd also create a manager class to control presenting, dismissing, and timing these elements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文