marinofaggiana 5 年 前
コミット
94cd3c555f
1 ファイル変更3 行追加1 行削除
  1. 3 1
      iOSClient/AppDelegate.m

+ 3 - 1
iOSClient/AppDelegate.m

@@ -218,7 +218,9 @@
         [self.activeDetail.richDocument grabFocus];
     }
     
-    [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"applicationWillEnterForeground" object:nil];
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"applicationWillEnterForeground" object:nil];
+    });
 }
 
 //