Fix: Half-Pixel blur due to non-integer values
Added token initialization functions and ability to limit number of tokens to be entered
…for initializing a TokenField with tokens. Added tokenLimit that restricts the amount of tokens that can be added. Defaults to -1(i.e unlimited)
only add tokens of didBeginEditing if they were removed on didEndEditing
Allowing caller to set flag to search in background. This is particularly useful when we have a long source array in which we are going to search, which can potentially lead to blocking of main thread for a long time. Have tested it in the example by setting this flag to both YES and NO. To maintain backward compatiblity just keeping the default value to NO.
For some result sets we may not need the sorting of results. Making it configurable so that caller can decide if it needs sorting. This is particularly useful for default implementation as it performs a brute force search on the source array which can be sorted once by the caller and used thereafter as it is without cost of sorting it everytime.
fix for #61. No reason to shift focus to tokenField
Fix placeholder bug that remained hidden although it should has been shown
…shown. The following cases have been covered. 1. No tokens - enter text and delete text 2. One token - delete token
Override sizeThatFits instead of sizeToFit
Fix layoutSubviews issue according to Apple'd API doc
* Should not override sizeToFit according to Apple's doc.
[TITokenField] Moved forcePickSearchResult check in resultsForSearchString:
…tring: - Simpler solution. - Eliminates chance of duplicate objects being selected when _showAlreadyTokenized == NO
Property added to prevent TITokenField from tokenizing unknown recipients.