commit
fe8725c444
@ -50,6 +50,8 @@
|
||||
[user setLastName:@"Sapienza"];
|
||||
|
||||
[user getJSONObject];
|
||||
|
||||
NSLog(@"%@",[PNUser PNObjClassName]);
|
||||
//NSLog(@"%@",userDictionary);
|
||||
|
||||
/*
|
||||
|
||||
@ -99,9 +99,11 @@ static bool isFirstAccess = YES;
|
||||
|
||||
if (self) {
|
||||
|
||||
_deviceType = @"iOS";
|
||||
_deviceModel = [[UIDevice currentDevice] model];
|
||||
_osVersion = [[UIDevice currentDevice] systemVersion];;
|
||||
_deviceName = [[UIDevice currentDevice] name];;
|
||||
_osVersion = [[UIDevice currentDevice] systemVersion];
|
||||
_deviceName = [[UIDevice currentDevice] name];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@ -26,6 +26,8 @@
|
||||
|
||||
@interface PNObject : NSObject
|
||||
|
||||
+ (NSString * _Nonnull) PNObjClassName;
|
||||
|
||||
- (_Nullable instancetype) initWithJSON:( NSDictionary * _Nonnull) JSON;
|
||||
|
||||
- (id _Nonnull) saveLocally;
|
||||
|
||||
@ -50,6 +50,15 @@
|
||||
|
||||
#pragma mark -
|
||||
|
||||
+ (NSString * _Nonnull) PNObjClassName {
|
||||
if ([[self class] resolveClassMethod:@selector(objectClassName)]) {
|
||||
return [[self class] objectClassName];
|
||||
}
|
||||
else {
|
||||
return [[super class] objectClassName];
|
||||
}
|
||||
}
|
||||
|
||||
- (_Nullable instancetype) init {
|
||||
self = [super init];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user