Bläddra i källkod

1.修改iOS Apex Drivers定位开启与关闭处理。

Pen Li 7 år sedan
förälder
incheckning
ca85546c0e
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      Redant Drivers/Apex And Drivers/Update/RAOrderEditViewController.m

+ 4 - 2
Redant Drivers/Apex And Drivers/Update/RAOrderEditViewController.m

@@ -277,8 +277,10 @@
             int result = [[json objectForKey:@"result"] intValue];
             if (result == RESULT_TRUE) {
                 
-                BOOL requiredLocation = [[json objectForKey:@"requiredLocation"] boolValue];
-                [RASingleton sharedInstance].requiredLocation = requiredLocation;
+                dispatch_async(dispatch_get_main_queue(), ^{
+                    BOOL requiredLocation = [[json objectForKey:@"requiredLocation"] boolValue];
+                    [RASingleton sharedInstance].requiredLocation = requiredLocation;
+                });
                 
                 [strongSelf syncUploadPhotos:photoArr Json:json HUD:nil];