Skip to content

Instantly share code, notes, and snippets.

@nderkach
Created May 7, 2019 10:51
Show Gist options
  • Save nderkach/ed71342119412f6959e1bf98473b7407 to your computer and use it in GitHub Desktop.
Save nderkach/ed71342119412f6959e1bf98473b7407 to your computer and use it in GitHub Desktop.
UIWindow *window = [[UIWindow alloc] initWithFrame:rootWindow.bounds];
window.hidden = NO;
window.windowLevel = UIWindowLevel_Background;
window.opaque = YES;
window.backgroundColor = UIColor.ows_materialBlueColor;
ScreenLockViewController *viewController = [ScreenLockViewController new];
viewController.delegate = self;
window.rootViewController = viewController;
self.screenBlockingWindow = window;
self.screenBlockingViewController = viewController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment