let predicate = NSPredicate(format: "users.@count == 0")
if let locations = PBOLocation.MR_findAllWithPredicate(predicate, inContext: context) as? [PBOLocation] {
for location in locations {
//what now?
}
}
我需要从特定的背景中删除每个已创建的位置。
MR_deleteEntity
,MR_deleteEntityInContext:
方法不起作用
答案 0 :(得分:0)
具体context
:
for location in locations {
context.deleteObject(location)
}