Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let current = UNUserNotificationCenter.current();
- current.getNotificationSettings(completionHandler:
- {
- (settings) in
- if settings.authorizationStatus == .notDetermined
- {
- // self.window = UIWindow(frame: UIScreen.main.bounds);
- self.window = UIWindow(frame: UIScreen.main.bounds)
- let aViewController = AViewController();
- self.window?.rootViewController = aViewController;
- self.window?.makeKeyAndVisible();
- }
- else
- {
- // self.window = UIWindow(frame: UIScreen.main.bounds);
- self.window = UIWindow(frame: UIScreen.main.bounds)
- let bViewController = BViewController();
- self.window?.rootViewController = bViewController;
- self.window?.makeKeyAndVisible();
- }
- });
- // Override point for customization after application launch.
- return true
- }
Add Comment
Please, Sign In to add comment