NSPredicateクラスのエンティティでフィルタリングするにはどうすればよいContactですか?
オブジェクト クラスクラッシュの種類の NSPredicate チェックの解決策:
[NSPredicate predicateWithFormat:@"person.class == %@", [Contact class]];
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'keypath person.class not found in entity <NSSQLEntity User id=12>'
バックグラウンド
コア データ エンティティUser(アプリ ユーザー) とContact(アドレス帳の連絡先) があり、どちらもPerson(抽象エンティティ) の子です。には、 、、またはPersonが多数identitiesあります。emailsphonesusernames
NSFetchRequestテキストメッセージのようなタイプアヘッドを作成するために、 forIdentityエンティティを作成したいと思いpersonますContact。