向 UIView 添加组合框或下拉列表 [英] Adding a combo box or drop-down list to UIView

查看:19
本文介绍了向 UIView 添加组合框或下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要向 UIView 添加组合框或下拉列表.我在界面构建器的库"中没有找到这样的对象.如何将此对象添加到我的 UIVIEW?我是否必须从另一个对象(哪个?)继承它,还是必须以编程方式从头开始创建它?请帮忙!!!

I need to add a combo box or drop-down list to a UIView. I did not find such an object in the "Library" of the interface builder. How do I add this object to my UIVIEW? Do I have to inherit it from another object (which one?) or do I have to create it from scratch programmatically? Please help !!!

推荐答案

此处的标准做法是使用 UIPicker 或将 TableViewController 推送到堆栈,并在用户选择此处的选项后返回.

The standard practice here is to either use a UIPicker or push a TableViewController to the stack and return once the user has selected an option here.

这篇关于向 UIView 添加组合框或下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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