Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an iPhone equivalent to the NSTokenField control?

In my app I want the user to type names into a UITextField (or equivalent) and then when they press return, it will put that word(s) in a blue bubble that's usually associated with tags. The cursor then moves to the end where they can add more "tags".

This can be seen when adding contacts in the To, CC & BCC fields in the Mail app, and also when selecting contacts in the Messages app.

How is this done? Is it something that's provided in the UIKit or available somewhere else?

Many thanks,

Michael

like image 785
Michael Waterfall Avatar asked Aug 20 '09 17:08

Michael Waterfall


2 Answers

Venmo just open sourced their token field.

https://github.com/venmo/VENTokenField.git

like image 86
3 revs Avatar answered Oct 04 '22 17:10

3 revs


edited:

The equivalent control in desktop Cocoa is an NSTokenField, but there doesn't seem to be an equivalent for Cocoa Touch.

like image 37
4 revs, 2 users 93% Avatar answered Oct 04 '22 17:10

4 revs, 2 users 93%