xcode 11 warnings

This commit is contained in:
Pfeil, Scott Robert 2019-10-08 12:50:29 -04:00
parent 14a06fde09
commit ad7b54dab8
2 changed files with 8 additions and 7 deletions

View File

@ -287,7 +287,6 @@
operation.delegate = delegate; operation.delegate = delegate;
operation.completionBlock = completionBlock; operation.completionBlock = completionBlock;
[self.presentationQueue addOperation:operation]; [self.presentationQueue addOperation:operation];
} }
}]; }];
} }

View File

@ -9,6 +9,7 @@
#import "MVMCorePresentViewControllerOperation.h" #import "MVMCorePresentViewControllerOperation.h"
#import "MVMCoreAlertController.h" #import "MVMCoreAlertController.h"
#import "MVMCorePresentAnimationOperation.h" #import "MVMCorePresentAnimationOperation.h"
#import "MVMCoreDispatchUtility.h"
@interface MVMCorePresentViewControllerOperation () @interface MVMCorePresentViewControllerOperation ()
@ -41,13 +42,14 @@ static void * XXContext = &XXContext;
} }
- (void)main { - (void)main {
[MVMCoreDispatchUtility performBlockOnMainThread:^{
// Always check for cancellation before launching the task.
if ([self checkAndHandleForCancellation]) {
return;
}
// Always check for cancellation before launching the task. [self present];
if ([self checkAndHandleForCancellation]) { }];
return;
}
[self present];
} }
- (void)present { - (void)present {