相关疑难解决方法(0)

领域迁移不起作用

    let config = Realm.Configuration(
        // Set the new schema version. This must be greater than the previously used
        // version (if you've never set a schema version before, the version is 0).
        schemaVersion: 1,

        // Set the block which will be called automatically when opening a Realm with
        // a schema version lower than the one set above
        migrationBlock: { migration, oldSchemaVersion in
            // We haven’t migrated anything yet, so oldSchemaVersion == 0
            if (oldSchemaVersion < 1) {
                // Nothing …
Run Code Online (Sandbox Code Playgroud)

realm ios swift2

14
推荐指数
2
解决办法
1万
查看次数

标签 统计

ios ×1

realm ×1

swift2 ×1