Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS drop down view [closed]

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

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?

Thanks.

like image 990
IssacZH. Avatar asked Feb 20 '14 06:02

IssacZH.


4 Answers

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.

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.

Here's how it looks like:

enter image description here

For more info and download you can check this brief tutorial or the GitHub project page (both wrote by me - the project is open-source).

like image 148
Darkseal Avatar answered Sep 21 '22 08:09

Darkseal


There is no dropdown available in iOS. You should create it with text field and tableview. Use below links for references:

iOS-Examples--UITableView-Combo-Box

a-simple-drop-down-list-for-iphone

like image 40
rahul Avatar answered Sep 23 '22 08:09

rahul


Yes. There is no dropdown component available in ios. And its really frustrating to build a basic component. However, VPPDropDown is there to solve your problem. https://github.com/vicpenap/VPPDropDown

like image 36
ayniam Avatar answered Sep 23 '22 08:09

ayniam


you can see this one too. This library is written with Swift 3

https://github.com/younatics/YNDropDownMenu

enter image description here

like image 41
Kyle Yi Avatar answered Sep 22 '22 08:09

Kyle Yi