UITableView 中的下拉菜单
我正在寻找构建或合并下拉菜单系统到我正在构建的应用程序中,但是我需要一些帮助来弄清楚它是如何完成的。根据我的最佳猜测,我必须使用 UIActionSheet,但它似乎并不是那么可定制。我遇到的最好的例子是 AppShopper iOS 应用程序:
下拉活动:注意它如何将表格向下推,它没有像 UIActionSheet 那样覆盖菜单。
I'm looking to build or incorporate a dropdown menu system into an app I'm building however I need some help figureing out how it's accomplished. From my best guess I'd have to use the UIActionSheet, however it doesn't seem all that customizable. The best example I've come accross is within the AppShopper iOS application:
Drop down active: notice how it pushed the table down, it did not overlay the menu as the UIActionSheet might.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是您想要遵循的模型,在我看来,他们只是在选择器和表本身之间扩展视图。它实际上不是表的一部分。
从上到下:有导航栏、选择器工具栏、“菜单”视图,然后是表格视图。菜单视图最初的高度为 0,并根据需要展开(在此过程中向下推表格视图) 。
If that's the model you want to follow, looks to me like they are simply expanding a view in between the selector and the table itself. It's not actually part of the table.
From the top down: there's the nav bar, the selector tool bar, the "menu" view", then the table view. The menu view is initially of height 0, and expanded as necessary (pushing down the table view in the process).