Core data 如何获取包含值的CoreData属性的计数
我有如下属性:aStaffPosx,其中“x”从1到12运行 谓词是什么样子的,这样我就可以得到包含值的所有aStaffPosx属性的计数?这就是我所拥有的,但不确定它是否正确:Core data 如何获取包含值的CoreData属性的计数,core-data,magicalrecord,Core Data,Magicalrecord,我有如下属性:aStaffPosx,其中“x”从1到12运行 谓词是什么样子的,这样我就可以得到包含值的所有aStaffPosx属性的计数?这就是我所拥有的,但不确定它是否正确: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"aStaffPos*"]; // read the single record 您有12个名称相似的不同属性?然后你需要在predicate.RATS中列出所有12个!无论如何谢谢你,汤
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"aStaffPos*"]; // read the single record
您有12个名称相似的不同属性?然后你需要在predicate.RATS中列出所有12个!无论如何谢谢你,汤姆…:-{