There are five methods you can use to manage the pending state.
[customer cancelPending];
[Customer cancelPendingOperations];
[customer submitPending];
[Customer submitPendingOperations];
[SampleApp_SampleAppDB submitPendingOperations:@”default”];
SampleApp_Customer *customer = [SampleApp_Customer find:101]; //Make some changes to the customer record. //Save the changes //If the user wishes to cancel the changes, a call to cancel pending will revert to the old values. [customer cancelPending]; // The user can submit the changes to the server as follows: [customer submitPending];