- August 28, 2025
- Mins Read
TextField with DropDown support using UIPickerView


Install using cocoapods. Add in your Podfile:
pod ‘IQDropDownTextField’
Or below for Swift version
pod ‘IQDropDownTextFieldSwift’
In IB (story boards or xibs) you can add UITextField‘s and set the class as IQDropDownTextField
Nothing more easy than it!
@implementation ViewController
– (void)viewDidLoad
{
[super viewDidLoad];
textFieldTextPicker.isOptionalDropDown = NO;
[textFieldTextPicker setItemList:[NSArray arrayWithObjects:@”London”,@”Johannesburg”,@”Moscow”,@”Mumbai”,@”Tokyo”,@”Sydney”, nil]];
}
@end
It’s very simple to setup your IQDropDownTextField. The sample below shows you how to:
import IQDropDownTextFieldSwift
class MyController : UIViewController {
@IBOutlet var occupationTextField: IQDropDownTextField!
override func viewDidLoad() {
occupationTextField.isOptionalDropDown = false
occupationTextField.itemList = [“programmer”, “teacher”, “engineer”]
}
}
And that’s all you need! =)
This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or ...
Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...