title: How to update specific record in Realm Objective-C
body: <p>I want to update specific record in Realm Objective-C. Currently, I have not found any code mention to update specific record. Please help me how to do it.</p>
  
  <p>Below my code is add record in Realm. But I want to update record regarding to <strong>cpID</strong>.</p>
  
  <pre><code>RLMCoachPadItem *RMLCoachPad = [[RLMCoachPadItem alloc]init];
  RMLCoachPad.cpID = [NSString stringWithFormat:@"%d", results.count+1];
  RMLCoachPad.cpDescription = _txtMessage.text;
  RMLCoachPad.cpTagId = @"";
  
  
  RLMRealm *realm = [RLMRealm defaultRealm];
  [realm beginWriteTransaction];
  [realm addObject:RMLCoachPad];
  [realm commitWriteTransaction];
  </code></pre>