Explorar o código

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

Pen Li %!s(int64=7) %!d(string=hai) anos
pai
achega
dc3e8d8d0f
Modificáronse 1 ficheiros con 1 adicións e 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();