remove old code
This commit is contained in:
parent
edf59e0e78
commit
30b875b2ab
@ -101,14 +101,7 @@
|
||||
}
|
||||
|
||||
+ (void)openURL:(nullable NSURL *)url completionHandler:(void (^ __nullable)(BOOL success))completion{
|
||||
if (@available(iOS 10.0, *)) {
|
||||
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:completion];
|
||||
} else {
|
||||
BOOL successful = [[UIApplication sharedApplication] openURL:url];
|
||||
if (completion != nil){
|
||||
completion(successful);
|
||||
}
|
||||
}
|
||||
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:completion];
|
||||
}
|
||||
|
||||
+ (void)displayViewController:(nonnull UIViewController <MVMCoreViewControllerProtocol> *)viewController forLoadObject:(nullable MVMCoreLoadObject *)loadObject presentationDelegate:(nullable NSObject<MVMCorePresentationDelegateProtocol>*)delegate completionHandler:(nullable void (^)(void))completionBlock {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user