【发布时间】:2017-06-28 05:49:15
【问题描述】:
let config = Realm.Configuration(syncConfiguration: SyncConfiguration(user: user, realmURL: realmURL))
Realm.asyncOpen(configuration: config) { realm, error in
if let realm = realm {
// Realm successfully opened, with all remote data available
}
else if let error = error {
// Handle error that occurred while opening or downloading the contents of the Realm
}
}
我使用上面的代码获得了异步打开领域,但是没有互联网它就无法工作。
【问题讨论】: