我有一种方法可以帮助我将新对象保存到存储中:
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