mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Use removeObjectForKey on deletePersistantStore.
This commit is contained in:
@@ -165,7 +165,7 @@ static NSString* const kRKManagedObjectContextKey = @"RKManagedObjectContext";
|
||||
// Clear the current managed object context. Will be re-created next time it is accessed.
|
||||
NSMutableDictionary* threadDictionary = [[NSThread currentThread] threadDictionary];
|
||||
if ([threadDictionary objectForKey:kRKManagedObjectContextKey]) {
|
||||
[threadDictionary setNilValueForKey:kRKManagedObjectContextKey];
|
||||
[threadDictionary removeObjectForKey:kRKManagedObjectContextKey];
|
||||
}
|
||||
|
||||
[self createPersistentStoreCoordinator];
|
||||
|
||||
Reference in New Issue
Block a user