From a869383e163a18cdedcf587383c1eca043129754 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 18 五月 2021 13:19:12 +0800
Subject: [PATCH] 2021-05-18 1.更新

---
 iOS/Xamarin/LCOnDemo/LCOnDemo/ViewController.m |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/iOS/Xamarin/LCOnDemo/LCOnDemo/ViewController.m b/iOS/Xamarin/LCOnDemo/LCOnDemo/ViewController.m
index 866745c..2706ed5 100644
--- a/iOS/Xamarin/LCOnDemo/LCOnDemo/ViewController.m
+++ b/iOS/Xamarin/LCOnDemo/LCOnDemo/ViewController.m
@@ -22,6 +22,10 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
+  
+}
+
+-(void)initLCSDK{
     //鍒濆鍖朙COpenSDK_Api
     [[LCApiKit sharedInstance] initSDKOpenApi:@"St_0000070a12e995ed44628eeea75a19fc"];
     [[LCApiKit sharedInstance] setCurrentDevicePlayToken:@"5a9cbb4ab2454454ba4995addf3760cc"];
@@ -32,6 +36,8 @@
 
 ///鐩戞帶
 - (IBAction)monitoringAction:(id)sender {
+    [self initLCSDK];
+    
     LCOnMonitorViewController *mVc = [[LCOnMonitorViewController alloc] init];
     
     
@@ -42,6 +48,7 @@
 
 ///鏉ョ數鎺ュ惉
 - (IBAction)callAction:(id)sender {
+    [self initLCSDK];
     
     LCOnIntercomViewController *mVc = [[LCOnIntercomViewController alloc] init];
     mVc.mLCCallDelegate = self;

--
Gitblit v1.8.0