【发布时间】:2015-04-07 10:25:39
【问题描述】:
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: 方法不起作用
【问题讨论】:
标签: swift core-data magicalrecord