TITokenField icon indicating copy to clipboard operation
TITokenField copied to clipboard

multiple token fields

Open JanC opened this issue 13 years ago • 8 comments

Hi, do you plan to add multiple token fields support (To:, Cc: ..) ?

cheers, Jan

JanC avatar Aug 14 '12 09:08 JanC

I don't, no, but you everything you need to do it yourself is there.

thermogl avatar Aug 14 '12 11:08 thermogl

Hi, I've implemented a "TITokenTableViewController" that allows the user to use multiple TITokenFields.

The user can configure it using data source delegate and provide an array of prompt texts ("To:", "Cc:", "Bcc:") as well as other (non titokenView) UITableViewCells

If you want, I can make a pull request ;)

Img

Img

JanC avatar Sep 17 '12 13:09 JanC

Yeah sweet, go ahead and submit a pull request :)

thermogl avatar Sep 17 '12 13:09 thermogl

ok, I'll clean up the code and commit soon. One thing though. I used ARC in my version. So if you really insist on non using ARC in the project, I'll have to de-ARC it.

JanC avatar Sep 17 '12 13:09 JanC

Well if the TITokenTableViewController is in its own .h/.m files, you can go ahead and commit it with ARC.

thermogl avatar Sep 17 '12 14:09 thermogl

I committed it.

There was also another pull request pending (added UIView as accessoryView to a titoken)

JanC avatar Sep 18 '12 10:09 JanC

Hi, I have been looking to do something exactly like this, I don't suppose you would share your code please?? It doesn't seem to be available here..

Many thanks

duncanhume avatar Nov 24 '12 10:11 duncanhume

Sorry, I still haven't gotten round to converting it back from arc, but you can find JanC's version here: https://github.com/JanC/TITokenField

thermogl avatar Nov 24 '12 15:11 thermogl