Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在实现一个 NSTokenField ,目前用户输入的任何文本都将转换为令牌。 我只想允许一组特定的标记,任何其他文本都不应该转换为标记。
有没有办法检查输入的文本是否是有效的标记,然后将其转换为保留其他文本不变的标记?
谢谢!