Created
September 20, 2012 16:37
-
-
Save Rich86man/3756962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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