iOS下拉视图

编程入门 行业动态 更新时间:2024-10-25 14:29:53
本文介绍了iOS下拉视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在搜索当用户点击它或崩溃时基本上展开的下拉视图(展开&折叠视图)。

I have been searching for drop down view (expand & collapse view) that basically expand when user clicked on it or collapse.

下拉菜单基本上用于包含textview / textfield。 到目前为止,我无法设法找到如何创建这个下拉列表视图。 我设法找到的是下拉菜单,这是一个类似于选项的选项,允许您选择一个选项。我只想包括文本。请问有关这方面的指针吗?

The drop down is basically use to include textview/textfield. Till now I could not manage to find how to create this drop down view. What I managed to find is drop down menu which is sort of like an option picker that allows you to select an option. I just wanted to include text only. Is it possible to ask for some pointers regarding this?

谢谢。

推荐答案

我还需要一个HTML选择式控件(单选下拉列表),而不会在过去和将来的iOS版本中打破XCode遗留的GUI界面。

I also needed a HTML select-like control (single-selection dropdown list) without breaking the XCode legacy GUI interface across past and future iOS releases.

我结束了up编码 DownPicker ,这是一个轻量级的控件,它只是结合 UITextField 和 UIPickerView 。它可以作为自定义控件( UIDownPicker )或也可以作为控件包装器使用,升级任何现有的 UITextField 。

I ended up coding DownPicker, a lightweight control which does just that combining UITextField and UIPickerView. It can be used either as custom control (UIDownPicker) or also as control wrapper, upgrading any existing UITextField.

这是它的样子:

有关更多信息和下载,您可以检查这个简短教程或 GitHub项目页面。

For more info and download you can check this brief tutorial or the GitHub project page.

更多推荐

iOS下拉视图

本文发布于:2023-08-05 17:01:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1306832.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视图   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!