gpt4 book ai didi

ios - 如何使用谓词访问另一个表的数据?

转载 作者:行者123 更新时间:2023-11-28 22:32:00 24 4
gpt4 key购买 nike

我有一个 iPad 应用程序(XCode4.6、iOS 6.2、ARC 和 Storyboards)。我有一个 CoreData 存储,如下所示:

enter image description here

根据 AppointmentsInfo 表中的键,我需要访问这两个表。核心数据不使用连接,所以我在想这样的事情:

"aApptKey = %@ and CLientInfo.ClientKey = %@"

工作谓词是什么样的?

最佳答案

应该是这样的:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"aApptKey == %@ && client.aClientKey == %@", obj1, obj2];

关于ios - 如何使用谓词访问另一个表的数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17157084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com