Swift UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm:)是否始终返回false?

Swift UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm:)是否始终返回false?,swift,definition,Swift,Definition,这个问题大致概括了这一点。我检查了许多不同的词,没有一个是真的。这是我的密码: func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("accessed") print(words[indexPath.row]) if UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm: wor

这个问题大致概括了这一点。我检查了许多不同的词,没有一个是真的。这是我的密码:

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    print("accessed")
    print(words[indexPath.row])
    if UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm: words[indexPath.row]) {
        print("in")
        let ref: UIReferenceLibraryViewController = UIReferenceLibraryViewController(term: words[indexPath.row])
        self.present(ref, animated: true, completion: nil)
    }
}

我试图显示给定单词的定义。任何帮助都将不胜感激。谢谢

您确定从管理选项中添加了所需的语言吗?不,我没有!这一定是问题所在,但我找不到这样做的选择。该选项在哪里?只需显示
UIReferenceLibraryViewController
,无需选中。您将在左下角找到“管理”选项。@ATir我也有同样的问题。你能修好它吗?