Showing
2 changed files
with
17 additions
and
0 deletions
No preview for this file type
... | @@ -120,6 +120,23 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; | ... | @@ -120,6 +120,23 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; |
120 | int cacheSizeDisk = 0; // 0MB | 120 | int cacheSizeDisk = 0; // 0MB |
121 | NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"]; | 121 | NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"]; |
122 | [NSURLCache setSharedURLCache:sharedCache]; | 122 | [NSURLCache setSharedURLCache:sharedCache]; |
123 | + | ||
124 | + // TEST CODE FOR PUSH - PUSH FIX | ||
125 | + // =========== | ||
126 | + // NSSet<UIScene *> * sceneArr = [[UIApplication sharedApplication] connectedScenes]; | ||
127 | + // UIScene * scene = [[sceneArr allObjects] firstObject]; | ||
128 | + // NSObject * sceneDelegate = (NSObject *)scene.delegate; | ||
129 | + | ||
130 | + // // for example, try to get variable "window" | ||
131 | + // UIWindow *currentKeyWindow = [sceneDelegate valueForKey: @"window"]; | ||
132 | + // NSLog(@"currentKeyWindow: %@", currentKeyWindow); | ||
133 | + // NSLog(@"sceneDelegate: %@", sceneDelegate); | ||
134 | + // // =========== | ||
135 | + | ||
136 | + // UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController]; | ||
137 | + // NSLog(@"existingModalController: %@", existingModalController); | ||
138 | + // NSLog(@"[UIApplication sharedApplication].delegate.window.rootViewController: %@", [UIApplication sharedApplication].delegate.window.rootViewController); | ||
139 | + // // =========== | ||
123 | 140 | ||
124 | // date = [NSDate date]; | 141 | // date = [NSDate date]; |
125 | // if ([CMPedometer isStepCountingAvailable]) { | 142 | // if ([CMPedometer isStepCountingAvailable]) { | ... | ... |
-
Please register or login to post a comment