如何在不使用选择器的情况下进行下拉菜单! [英] How to do dropdown menu without using picker!!

查看:96
本文介绍了如何在不使用选择器的情况下进行下拉菜单!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人帮助我使用Button而不使用pickerview来做下拉菜单..在谷歌我没有得到完美的解决方案.. plss help

Will anyone help me to do dropdown menu using Button without using pickerview.. In google i didn't get the perfect solution.. plss help

推荐答案

On ios最好使用常用控件。在这个问题中, UIAlertView 或ActionSheet是ios 7的正确解决方案。但对于ios 8及更高版本使用UIAlertViewController。所以你需要实现两者,如果你不能避免使用旧的ios 7.通常的技术是实现两种方式并在运行时选择设备的操作系统。



另请参阅Github上这个漂亮的 DropdownMenu
On ios it is better to use the common controls. In this problem the UIAlertView or ActionSheet is the right solution for ios 7. But for ios 8 and later use the UIAlertViewController. So you need to implement both, if you cant avoid the old ios 7. It is common technique to implement both ways and choose on the OS of the device at runtime.

Take also a look at this nice DropdownMenu at Github.


这篇关于如何在不使用选择器的情况下进行下拉菜单!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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