Skip to content

Instantly share code, notes, and snippets.

@Rich86man
Created September 20, 2012 16:37
Show Gist options
  • Save Rich86man/3756962 to your computer and use it in GitHub Desktop.
Save Rich86man/3756962 to your computer and use it in GitHub Desktop.
- (void)zoodlesPurchaseDidFinish
{
[self.cellBeingPurchased hideProcessingPayment];
self.midTransaction = NO;
[self.booksFetchController performFetch:nil];
[self.tableView reloadData];
[[ZOStore sharedStore] setDelegate:nil];
// Invalidate the ZOReading's so a newly purchased book
// will show up in the Playground books tab
ZOEntityManager* readingManager = [[ZOEntityManager alloc]initWithModel:kZOReadingName kidId:nil];
[readingManager invalidateInContext:self.defaultManagedObjectContext];
[self.defaultManagedObjectContext save:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment