浏览代码

1.iphone 8 没跑timer????

huangxiaodong 1 年之前
父节点
当前提交
6a04892a41
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      创维盒子/双子星云手机/Class/Guide/inputPWDViewController.m

+ 2 - 3
创维盒子/双子星云手机/Class/Guide/inputPWDViewController.m

@@ -562,11 +562,10 @@
     }];
     
     ///
-    [NSTimer scheduledTimerWithTimeInterval:3 repeats:NO block:^(NSTimer * _Nonnull timer) {
-        
+    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
         [self->_pwdErrorTip removeFromSuperview];
         self->_pwdErrorTip = nil;
-    }];
+    });
 }
 
 - (void)keyBoardBtnPressed:(id)sender{