Ver código fonte

【IOS端-预生产环境】分享记录-查看分享连接没反应。

huangxiaodong 3 dias atrás
pai
commit
611cd76a10

+ 9 - 1
创维盒子/code/Class/Set/previewFile/shareRecordDetailsHWViewController.m

@@ -380,7 +380,15 @@
         NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
         
         NSURL *URL = [NSURL URLWithString:shareUrl];
-        [[UIApplication sharedApplication] openURL:URL];
+        //[[UIApplication sharedApplication] openURL:URL];
+        
+        [[UIApplication sharedApplication] openURL:URL options:@{} completionHandler:^(BOOL success) {
+            if (success) {
+                NSLog(@"URL成功打开");
+            } else {
+                NSLog(@"无法打开URL");
+            }
+        }];
 
     }
     else if(tag == 10){