0
let predicate = NSPredicate(format: "[email protected] == 0")
if let locations = PBOLocation.MR_findAllWithPredicate(predicate, inContext: context) as? [PBOLocation] {
for location in locations {
//what now?
}
}
我需要從特定的上下文中刪除每個建立的位置。如何用魔法記錄從特定上下文中簡單地刪除一組實體?
MR_deleteEntity
,MR_deleteEntityInContext:
方法不起作用