|
|
@@ -41,6 +41,8 @@
|
|
|
if (scene) {
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(guideOk:) name:GuideOkNotification object:nil];
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showLockViewFun:) name:lockBypwdNotification object:nil];
|
|
|
+
|
|
|
UIWindowScene *windowScene = (UIWindowScene *)scene;
|
|
|
self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
|
|
|
self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
|
|
|
@@ -541,4 +543,10 @@
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+#pragma mark 主动上锁
|
|
|
+- (void)showLockViewFun:(NSNotification*)not
|
|
|
+{
|
|
|
+ [self showCalculatorVC];
|
|
|
+}
|
|
|
@end
|