如何创建下拉框? [英] How to create dropdown box?

查看:114
本文介绍了如何创建下拉框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我想在下拉框中提供选项,我知道iPhone中没有这样的事情可以使用可用的控制器创建下拉框?请任何人建议我如何实现这一点?

解决方案

Deepak,你可以创建一个下拉式的控件,帮助下UIButton和UITableView指示下拉列表。但是,确定您的应用程序将被Apple拒绝。



大多数iPhone用户都可以在iPhone应用程序中使用下拉框,因为人们习惯了Pickers



所以更好的去使用UIPicker,这是为了你所要求的。


In my app I want to provide option in dropdown box, I know there is no such thing in iPhone can I create dropdown box using available controllers? Please can anyone suggest me how I can achieve this?

解决方案

Deepak, You can create a Drop down like control with a help of a UIButton and a UITableView indicating the drop down list. But for sure your application would be rejected by Apple.

Most of the iPhone users would be comfortable using a drop down box in an iPhone app, because people got used to Pickers .

So better go for using UIPicker, which is meant for what you are asking.

这篇关于如何创建下拉框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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