forked from keyf/AutocompletionTableView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
13 lines (10 loc) · 706 Bytes
/
README
File metadata and controls
13 lines (10 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
AutocompletionTableView
It's a very simple UITableView subclass which let's you to add real-time suggestion list for UITextView based on the custom dictionary.
Step 1: init an instance of AutocompletionTableView with "initWithTextField:inViewController:withOptions:".
Step 2: set its dictionary of suggestion strings
Step 3: set it as the target for UIControlEventEditingChanged event for your UITextField:
[YOUR_textField addTarget:YOUR_INSTANCE_of_AutocompletionTableView action:@selector(textFieldValueChanged:) forControlEvents:UIControlEventEditingChanged];
Step 4: Enjoy! ;)
Step 5: let me know what do you think at http://cocoacontrols.com/platforms/ios/controls/autocompletiontableview
-
Arseniy