• Stars
    star
    309
  • Rank 135,306 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TextField with DropDown support using UIPickerView

IQDropDownTextField

TextField with DropDown support using UIPickerView

[Simple] [Large Text] [Multi List] [Date] [Time] [Date Time]

Installing

Install using cocoapods. Add in your Podfile:

pod 'IQDropDownTextField'

Or below for Swift version

pod 'IQDropDownTextFieldSwift'

How to Use

In IB (story boards or xibs) you can add UITextField's and set the class as IQDropDownTextField

Objective-C

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

Swift

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! =)

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

If you wish to contact me, email at: [email protected]

LICENSE

Copyright (c) 2010-2015

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

IQKeyboardManager

Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.
Swift
16,440
star
2

IQAudioRecorderController

A drop-in universal library allows to record audio within the app with a nice User Interface.
Objective-C
637
star
3

IQMediaPickerController

Audio Image Video Picker Controller
Objective-C
500
star
4

IQActionSheetPickerView

ActionSheet with UIPickerView
Objective-C
205
star
5

IQScreenRuler

Screen Ruler - Pixel Perfect Screenshot Ruler
Objective-C
171
star
6

IQGeometry

IQGeometry is the extension of CGGeometry
Objective-C
61
star
7

IQListKit

Model driven UITableView/UICollectionView
Swift
61
star
8

IQStickerView

Objective-C
41
star
9

IQIrregularView

IQIrregularView for those who need view touch on a particular part of UIView.
Objective-C
39
star
10

IQPullToRefresh

Easy Pull to refresh and Load more handling on a UIScrollView subclass
Swift
15
star
11

IQGradientMaskView

IQGradientView is a subclass to show Gradient Mask on the top and bottom.
Objective-C
6
star
12

IQAPIClient

Model-driven REST API Client
Swift
4
star
13

IQDeviceLockEvent

Device lock/unlock event notification
Objective-C
3
star
14

IQCircularProgressView

Circular progress view with progress and indeterminant states
Objective-C
2
star
15

IQKeyboardToolbarManager

Used for maintaining IQKeyboardToolbar throughout the app.
Swift
1
star
16

IQUtility

Utility functions
Swift
1
star
17

IQCountryStateHandler

Country and State list easy handling classes
Objective-C
1
star