wxr
2024-09-30 30c21abd3047624cc413f5eaacbbbb88bae46f6a
HDL-ON_iOS/ViewController.cs
@@ -22,6 +22,13 @@
            }
        }
        // 切换到竖屏模式
        public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
        {
            return UIInterfaceOrientationMask.Portrait;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
@@ -49,18 +56,20 @@
            }
            //启动友盟sdk
            new System.Threading.Thread(() => {
                while (true)
                {
                    if (OnAppConfig.Instance.IsLogin)
                    {
                        //var um = new UMSdk.HDLUMSDK();
                        //UMSdk.HDLUMSDK.InitUMSDKWithAppKey("61d56642e0f9bb492bbc3e72", "IOS");
                        break;
                    }
                    System.Threading.Thread.Sleep(1000);
                }
            }) { IsBackground = true }.Start();
            //new System.Threading.Thread(() => {
            //    int count = 0;
            //    while (count<5)
            //    {
            //        count++;
            //        if (OnAppConfig.Instance.IsLogin)
            //        {
            //            var um = new UMSdk.HDLUMSDK();
            //            UMSdk.HDLUMSDK.InitUMSDKWithAppKey("61d56642e0f9bb492bbc3e72", "IOS");
            //            break;
            //        }
            //        System.Threading.Thread.Sleep(1000);
            //    }
            //}) { IsBackground = true }.Start();