Search code examples
objective-cuitableviewuitextview

How to implement adding to recent UITextField chosen names in different color?


I want to get the results as per the image below:

enter image description here

This is UITextField, when I tap on it, then I filter the table. When I select some UITableViewCell, then I need to add some text into my recent UITextField (where I'm actually typing). I can delete some characters, but when I try to delete "purple comma" then I have to remove all name immediately. How can I implement that behaviour?


Solution

  • Sounds like you're looking for something along the lines of an NSTokenField for iOS.

    A quick search on Github provides some options:

    Obviously you would have to edit them for the style you want, but it's a start.