I am trying to implement a textView in which when user starts typing(Let's say names) it would show up the suggestions and when they click them it gets added to the textView than user presses comma and again the same functionality for another name....
And at the end the text in the textView should look like this...
Aron,Maria,Alex,Cassie
Can any one suggest me How can I achieve this? (Its somewhat similar to adding the "Tags" while posting this question!!!)
Thanks.
If we tap inside of iOS textview automatically the keyboard will appear to type content inside of textview. We can use Text View in our iOS application by adding UITextView class reference in our applications. Now we will see how to use text view in our iOS applications with example.
UITextView supports the display of text using custom style information and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document. This class supports multiple text styles through use of the attributedText property.
A text view displays multiline, styled text content, which can optionally be editable. Text views can be any height and enable scrolling when the content extends outside of the view. By default, content within a text view is aligned to the leading edge and uses the system label color.
UITextView supports the display of text using custom style information and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document.
You can use a NSTokenField replacement there is some libraries here :
tokenField libraries
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With