mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Instantiate the sharedFactory via the static initialize method
This commit is contained in:
@@ -26,6 +26,12 @@ static RKTestFactory *sharedFactory = nil;
|
||||
@synthesize clientClass;
|
||||
@synthesize objectManagerClass;
|
||||
|
||||
+ (void)initialize
|
||||
{
|
||||
// Ensure the shared factory is initialized
|
||||
[self sharedFactory];
|
||||
}
|
||||
|
||||
+ (RKTestFactory *)sharedFactory
|
||||
{
|
||||
if (! sharedFactory) {
|
||||
|
||||
Reference in New Issue
Block a user