Explorar el Código

1.修改iOS Apex Drivers登出后界面不响应交互事件。

Pen Li hace 7 años
padre
commit
dc3e8d8d0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Redant Drivers/Apex And Drivers/RAProgressHUD.m

+ 1 - 1
Redant Drivers/Apex And Drivers/RAProgressHUD.m

@@ -109,10 +109,10 @@ static const CGFloat HUDSIZE = 100.0f;
 
 - (void)dismiss:(void(^)(void))completion {
     
+    self.window.userInteractionEnabled = YES;
     [UIView animateWithDuration:0.25 animations:^{
         self.alpha = 0.3;
     } completion:^(BOOL finished) {
-        self.window.userInteractionEnabled = YES;
         [self removeFromSuperview];
         if (completion) {
             completion();