0
我现在从iCloud中在我的iOS应用程序搜索文档用以下代码的iCloud NSPredicate错误的iOS
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"%K CONTAINS[c] %@", NSMetadataItemFSNameKey,searchText];
[self.notes filterUsingPredicate:predicate];
[self.tblMainTableView reloadData];
当我运行和搜索它,它显示与以下错误消息
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Note 0x1cd4ed10> valueForUndefinedKey:]: this class is not key value coding-compliant for the key kMDItemFSName.'
错误
我如何搜索它?
对不起,但'NSMetadataQuery'返回包含属性'NSMetadataItemFSNameKey'的NSMetadataItems'。这可能是一些iOS错误。多一个。 – SpaceDog