Showing
2 changed files
with
17 additions
and
0 deletions
No preview for this file type
| ... | @@ -121,6 +121,23 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; | ... | @@ -121,6 +121,23 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; |
| 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 | 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 | + // // =========== | ||
| 140 | + | ||
| 124 | // date = [NSDate date]; | 141 | // date = [NSDate date]; |
| 125 | // if ([CMPedometer isStepCountingAvailable]) { | 142 | // if ([CMPedometer isStepCountingAvailable]) { |
| 126 | // pedometer = [[CMPedometer alloc] init]; | 143 | // pedometer = [[CMPedometer alloc] init]; | ... | ... |
-
Please register or login to post a comment