Parcourir la source

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

Pen Li il y a 7 ans
Parent
commit
dc3e8d8d0f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();