新しいオブジェクトをストレージに保存するのに役立つメソッドがあります。
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