以编程方式访问 iOS 字典 [英] Access iOS dictionary programmatically
问题描述
我正在寻找一种以编程方式访问 iOS 字典的方法.我需要的是从自定义应用程序内部检索特定语言的单词列表.
是否可以?是否有提供此(或类似)功能的 API?
我查看了 Apple 文档,但没有找到任何有用的信息...有人可以指出我正确的方向吗?
I'm looking for a way to access iOS dictionary programmatically. What I need is to retrieve the list of the words of a particular language from inside a custom app.
Is it possible? Are there any API that provide this (or similar) functionality?
I've checked Apple documentation but didn't find anything useful...May someone point me to the right direction?
推荐答案
我不认为有公共 API 可以访问嵌入的 Dictionary.最接近的是使用 UITextChecker 但这可能无法满足您的需求
I don't think there is a public API to access the embedded Dictionary. The closest is using UITextChecker but that may not satisfy your needs
作为替代方案,您可以在您想要的语言中找到并嵌入一个单词词典?它可能需要一些额外的工作
As an alternative, you could find and embed a Word Dictionary in the Language you want? It may require some extra work
这篇关于以编程方式访问 iOS 字典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!