mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
HDL-ON_iOS/ViewController.cs
@@ -22,6 +22,13 @@
            }
        }
        // 切换到竖屏模式
        public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
        {
            return UIInterfaceOrientationMask.Portrait;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
@@ -48,6 +55,22 @@
            }
            //启动友盟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();
        }
        public override UIStatusBarStyle PreferredStatusBarStyle()
        {