4

我有一个简单的 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.

如何根据当前价值计算财产的新价值?

4

0 回答 0