|
@@ -59,6 +59,8 @@
|
|
|
|
|
|
@property(nonatomic, copy) NSString *getShareStr;//拿到分享的字符串
|
|
|
|
|
|
+@property (nonatomic, assign) BOOL isFirstOpenInLaunch;//启动页停两秒
|
|
|
+
|
|
|
//冷启动分享跳入用
|
|
|
@property(nonatomic, strong) UISceneSession *session;
|
|
|
@property(nonatomic, strong) UISceneConnectionOptions *connectionOptions;
|
|
@@ -89,6 +91,8 @@
|
|
|
self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
|
|
|
self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
|
|
|
|
|
|
+ _isFirstOpenInLaunch = YES;
|
|
|
+
|
|
|
// 初始化数据库
|
|
|
[self initBrowserWindow];
|
|
|
// 加载主页面
|
|
@@ -177,11 +181,13 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
- if(maskModel == 0){
|
|
|
+ if(maskModel == 0 && _isFirstOpenInLaunch){
|
|
|
//20240612 产品觉得 启动页太快了 要停两秒
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[self getDeviceMsgInMainVCWith:deviceDict];
|
|
|
});
|
|
|
+
|
|
|
+ _isFirstOpenInLaunch = NO;
|
|
|
}
|
|
|
else{
|
|
|
[self getDeviceMsgInMainVCWith:deviceDict];
|