我有这个问题。
ApiKeyModel *credentials = [[ApiKeyModel allObjects] firstObject];
RLMRealm *realm = [RLMRealm defaultRealm];
[realm beginWriteTransaction];
credentials.current_uuid = self.currentExecutionUuid;
[realm commitWriteTransaction];
ApiKeyModel *credentialsUpdated = [[ApiKeyModel allObjects] firstObject];
NSLog(@"print curren execution %@", [credentialsUpdated current_uuid]);
我正在尝试更新apikeymodel对象,然后当我打印更新的值返回nil时,ApiKey模型对象有一个主键,但不是我想要更新的值。