Manos Chorianopoulos

test code for push notifications 3

......@@ -61,6 +61,36 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
// self.window.rootViewController = rootViewController;
// [self.window makeKeyAndVisible];
// ==================
// UIViewController *controller = [[UIViewController alloc] init];
// UIView *myview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height)];
// [myview setBackgroundColor:[UIColor redColor]];
// [controller.view addSubview:myview];
// controller.view = myview;
// UIWindow *modalWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
// modalWindow.rootViewController = [[UIViewController alloc] init];
//// modalWindow.windowLevel = UIWindowLevelNormal + 1;
// [modalWindow makeKeyAndVisible];
// [modalWindow.rootViewController presentViewController:controller animated:YES completion:nil];
// UIViewController *topRootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
// while (topRootViewController.presentedViewController)
// {
// topRootViewController = topRootViewController.presentedViewController;
// }
//
// [topRootViewController presentViewController:controller animated:YES completion:nil];
// UIViewController *presenter = ((AppDelegate *)[[UIApplication sharedApplication] delegate]).window.rootViewController;
//
// [presenter presentViewController:controller animated:YES completion:nil];
// ==================
// date = [NSDate date];
// if ([CMPedometer isStepCountingAvailable]) {
// pedometer = [[CMPedometer alloc] init];
......