From c76c3c93c6ed9cc8985078956e80c044f39cdf94 Mon Sep 17 00:00:00 2001 From: Matthew Sun Date: Mon, 25 Sep 2017 17:50:59 -0700 Subject: [PATCH] update openURL: for iOS 10 deprecation --- src/moaiext-iphone/MOAIWebViewIOS.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/moaiext-iphone/MOAIWebViewIOS.mm b/src/moaiext-iphone/MOAIWebViewIOS.mm index 0fef3fc7e9..cf3dc647c1 100644 --- a/src/moaiext-iphone/MOAIWebViewIOS.mm +++ b/src/moaiext-iphone/MOAIWebViewIOS.mm @@ -429,8 +429,8 @@ cc8* urlStr = lua_tostring ( state, 1 ); NSString* urlString = [[ NSString alloc ] initWithCString:urlStr encoding:[ NSString defaultCStringEncoding ]]; NSURL* url = [ NSURL URLWithString:urlString ]; - - [[ UIApplication sharedApplication ] openURL:url ]; + + [UIApplication.sharedApplication openURL:url options:@{} completionHandler:nil]; return 0; } @@ -690,4 +690,4 @@ STLString repr; return repr; -} \ No newline at end of file +}