소스 검색

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{