Closed rex-remind101 closed 11 years ago
Found a bug in this, will fix and resubmit, sorry.
Why not use the delegate method -tokenField:willAddToken:? You can return NO to prevent the user adding a token.
Setting a bool for all the functionality is simpler :)
Also, then there are two comparisons being performed, one against delimiters for when tokenizing happens and one for when you check to make sure it's a token you want.
Added a bool .forcePickSearchResult to TITokenFieldView so the that user is forced to pick a search result when typing into the field. Like on Facebook message app. If making a messaging app this setting will prevent the user from sending to unknown recipients.