marinofaggiana 5 tahun lalu
induk
melakukan
94cd3c555f
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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];
+    });
 }
 
 //