Skip to content

tetek/SuggestiveTextField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuggestiveTextField for iPad

  • It's a UITextfield subclass that presents suggestions based on user input.
  • Suggestions are being displayes in a UIPopoverController.
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)];

screenshot

Simply copy SuggestiveTextField class to your project and use as in ViewController.h example.

###License The code is licensed under WTFPL

About

UITextField subclass with suggestions in popover.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •