NSBatchUpdateRequest - 如何根据当前值计算属性的新值?

时间:2015-10-19 13:18:49

标签: ios swift nsfetchedresultscontroller nsbatchupdaterequest

我有一个简单的NSBatchUpdateRequest:

let bur = NSBatchUpdateRequest(entityName: "WLWishlist")
bur.resultType = .UpdatedObjectIDsResultType
bur.predicate = NSPredicate(format: "itemCount = %d", 0)
bur.propertiesToUpdate = ["position": ???] //here I need to add 1 to current position.

如何根据当前值计算属性的新值?

0 个答案:

没有答案