Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. @implementation RLMFMCGProductForm
  2. + (NSString *)primaryKey
  3. {
  4. return @"uuid";
  5. }
  6.  
  7. @end
  8.  
  9. RLMRealm *realm = [RLMRealm defaultRealm];
  10. NSLog(@"}}}}}}}}}}} %@", form.uuid);
  11. @try {
  12. [realm beginWriteTransaction];
  13. form.uuid = @"test";
  14. [realm addOrUpdateObject:form]; // [realm addOrUpdateObject:employeeInfo];
  15. [realm commitWriteTransaction];
  16. }
  17. @catch (NSException *exception) {
  18. NSLog(@"exception");
  19. if ([realm inWriteTransaction]) {
  20. [realm cancelWriteTransaction];
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement