no message

This commit is contained in:
Giuseppe Nucifora 2016-02-19 13:34:22 +01:00
parent bcbcac36d2
commit bc854abc37

View File

@ -75,7 +75,9 @@ static bool isFirstAccess = YES;
NSDictionary *savedUser = [[PNObjectModel sharedInstance] fetchObjectsWithClass:[self class]]; NSDictionary *savedUser = [[PNObjectModel sharedInstance] fetchObjectsWithClass:[self class]];
if (savedUser) { if (savedUser) {
USER = [super initWithLocalJSON:savedUser]; Class objectClass = NSClassFromString([[self class] PNObjClassName]);
USER = [[objectClass alloc] initWithLocalJSON:savedUser];
} }
if (USER) { if (USER) {