将组合框或下拉列表添加到UIView [英] Adding a combo box or drop-down list to UIView
本文介绍了将组合框或下拉列表添加到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屋!
查看全文