Realm in a write transaction - c

2020-10-27  本文已影响0人  MNCode

代替try! realm.transactionWithBlock()使用

try! realm.write {....}

使用以下命令查询数据库:

代替 ToDoItem.objects(with: predicate)

realm.objects(ToDoItem.self).filter(predicate)

上一篇 下一篇

猜你喜欢

热点阅读