TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Michael Kamphausen, cg, Tino Rachui, Mathias Köhnke, Mathias Koehnke, Nico Schümann, Heiko Wichmann, Stephan Lerner, Famara Kassama.
Advanced UITextField subclass with the possibility to be connected to a picker. Text Field can be configured with a list of options which will be presented in a picker view instead of showing a keyboard.
Supports:
Import header file:
#import "APLTextField.h"
Initialize your APLTextField Intance as text field with UIPickerView as inputView:
yourTextField.pickerOptions = @[@"A", @"B", @"C"];
To set the value of the text field, don't use yourTextField.text but:
[yourTextField setAndSelectText:@"C"];
Initialize your APLTextField Intance as text field with UIDatePicker as inputView:
dateTextField.hasDatePicker = YES;
To set the value, don't use dateTextField.text but:
[dateTextField setAndSelectDate:[NSDate date]];
Get the date by calling:
NSDate* date = [dateTextField getDate];