##SuggestiveTextField for iPad
- It's a
UITextfieldsubclass that presents suggestions based on user input.
- Suggestions are being displayes in a
NSArray *suggestions = @[@"Warsaw",@"Paris",@"Zurich"]; //Initialize with frame or from xib, doesn't matter. SuggestiveTextField *textField = [SuggestiveTextField alloc] initWithFrame:CGRectMake(0,0,100,30)]; //Remember to set suggestions. [textField setSuggestions:suggestions]; //Optional textField.shouldHideOnSelection = NO; //default is YES [textField setPopoverSize:CGSizeMake(100,100)];
Simply copy SuggestiveTextField class to your project and use as in ViewController.h example.
###License The code is licensed under WTFPL