Просмотр исходного кода

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

Pen Li 7 лет назад
Родитель
Сommit
dc3e8d8d0f
1 измененных файлов с 1 добавлено и 1 удалено
  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();