我有一个方法可以帮助我将新对象保存到存储中:
try! db.operation { (context, save) -> Void in
let object: Device = try! context.new()
object.address = self.tempDevice.address
try! context.insert(object)
save()
}
但是如何修改我已使用Device
SugarRecord