Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textview with Suggestions List in iOS

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.

like image 996
Ajay Avatar asked May 22 '13 07:05

Ajay


People also ask

How to use text view in iOS applications?

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.

How do I display multiple text styles in UITextView?

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.

What is a text view in Salesforce?

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.

What is UITextView used for?

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.


1 Answers

You can use a NSTokenField replacement there is some libraries here :

tokenField libraries

like image 139
Yann86 Avatar answered Nov 05 '22 18:11

Yann86