Browse Source

1.iphone 8 没跑timer????

huangxiaodong 1 year ago
parent
commit
6a04892a41

+ 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{